Hong Kong was ceded to Britain in 1842 after the First Opium War. It became a British crown colony until 1997 when it was handed back to China.