Contrary to a common misconception, Hong Kong has never existed as an independent country. Its modern history is defined by a colonial era followed by a return to Chinese rule.
After the First Opium War, the Qing Dynasty ceded Hong Kong Island to Britain in 1842 under the Treaty of Nanking. Subsequent agreements expanded British control to the Kowloon Peninsula and the New Territories, establishing Hong Kong as a British colony for over 150 years.
On July 1, 1997, sovereignty over Hong Kong was transferred from the United Kingdom to the People's Republic of China. The handover marked the end of colonial rule and the beginning of the "one country, two systems" framework, which guarantees Hong Kong a high degree of autonomy for 50 years.
Thus, Hong Kong did not lose independence—it transitioned directly from a British colony to a Special Administrative Region of China.