Hong Kong was a dependent territory of the United Kingdom from 1842
until the transfer of its sovereignty to the People's Republic of
China in 1997. The Sino-British Joint Declaration and the Basic Law
of Hong Kong stipulate that Hong Kong operate with a high degree of
autonomy until at least 2047, fifty years after the transfer. Under
the policy of "one country, two systems", the Central People's
Government is responsible for the territory's defence and foreign
affairs, while the Government of Hong Kong is responsible for its
own legal system, police force, monetary system, customs policy,
immigration policy, and delegates to international organisations
and events.