On August 29, 1842, the Qing government signed the Nanjing Treaty with Britain, ceding Hong Kong Island and Yazhou to Britain.
In October 1860, the Qing government was forced to sign the Treaty of Beijing, which handed over the south of Boundary Street and Stonecutters Island in Kowloon Peninsula to the British.
In 1898, the Qing government and Britain signed a special section on the boundary of Hong Kong, which leased the land south of Shenzhen River to Britain for 99 years.
In September 1982, the British government and the government of the people's Republic of China began negotiations on the future of Hong Kong.
On December 19, 1984, China formally signed the Sino British Joint Declaration. China established a special administrative region in Hong Kong and began to exercise sovereignty and governance over Hong Kong Island, the Kowloon peninsula south of Boundary Street and the new territories.
At midnight on July 1, 1997, the national flag of the people's Republic of China and the regional flag of the Hong Kong Special Administrative Region were raised in Hong Kong, and the Chinese government began to exercise sovereignty over Hong Kong.