The handover of Hong Kong from the United Kingdom of Great Britain and Northern Ireland to the People's Republic of China occurred at midnight on 1 July 1997. This event ended 156 years of British rule, dating back to the cession of Hong Kong Island in 1841 during the First Opium War.
Hong Kong was a colony of the British Empire from 1841, except during the Japanese occupation of Hong Kong from 1941 to 1945. Its territory expanded after the First Opium War with the addition of the Kowloon Peninsula and Stonecutters Island in 1860 and the New Territories in 1898 under a 99-year lease. The 1984 Sino–British Joint Declaration set the terms of the 1997 handover, under which China pledged to uphold "one country, two systems" for 50 years. Hong Kong became China's first special administrative region, followed by Macau in 1999 under similar arrangements. With a population of about 6.5 million in 1997, Hong Kong made up 97 percent of the population of all the British Dependent Territories and was Britain's last major colony.