User: Extract the year when Hong Kong was established
Assistant: Hong Kong was established in 1841 as a colony of the British Empire after the Qing Empire ceded Hong Kong Island from Xin'an County at the end of the First Opium War.