Hong Kong`s autonomy was guaranteed by the “one country, two systems” agreement, enshrined in the 1984 Sino-British Joint Declaration signed by then-Chinese Prime Minister Zhao Ziyang and British Prime Minister Margaret Thatcher. During the 2014 Umbrella Revolution, a campaign against perceived violations of mainland China in HKSAR, Chinese officials concluded for the first time that China considered the joint declaration “invalid,” according to a British MP.  This conclusion was found to be “manifestly erroneous” by a senior Hong Kong lawyer and rejected by the British Foreign Minister, who stated that the document was a legally binding agreement that had to be respected.   Rita Fan, then Hong Kong`s only representative on the Standing Committee of the National People`s Congress in Beijing, stated that responsibility for the UK`s oversight had expired and that the joint declaration did not provide for universal suffrage.  Britain quickly returned to this unofficial part of the agreement and attacked Kowloon Walled City in 1899 to find it abandoned. They didn`t do anything with it, or the outpost, and the question of ownership of Kowloon Walled City was directly in the air. The outpost consisted of a yamen, as well as buildings that grew up in sparsely populated neighborhoods from the 1890s to the 1940s. After the agreement, Britain began to introduce a greater degree of democracy to Hong Kong. Hong Kong`s first democratic government was formed in the late 1980s, consisting of functional constituencies and direct elections. The stability of these changes became questionable after the Tiananmen Square incident (Beijing, China, June 3-4, 1989), when an unspecinate number of student protesters were massacred. Half a million people in Hong Kong went to marches to protest. PM denounces new security law and promises tailored visas for 2.9 million Hong Kongers The signing of the joint declaration has caused some controversy in the UK due to British Prime Minister Margaret Thatcher`s agreement with the Chinese Communist government, represented by Deng Xiaoping.
 In the White Paper containing the Joint Statement, Her Majesty`s Government stated that “the alternative to the adoption of this agreement is not to reach an agreement”, a statement that refuted criticism that the Declaration had made too many concessions to China and highlighted China`s considerable influence during the negotiations.  One of the most important achievements has been to ensure the continuity of the independent judicial system in Hong Kong, including agreements in the areas of commercial navigation, civil aviation, nuclear materials, whale fishing, the Submarine Telegraph, space and many others.