"In the Joint Declaration, the PRC Government stated that it had decided to resume the exercise of sovereignty over Hong Kong (including Hong Kong Island, Kowloon, and the New Territories) with effect from 1 July 1997, and the UK Government declared that it would hand over Hong Kong to the PRC with effect from 1 July 1997. The PRC Government also declared its basic policies regarding Hong Kong in the document.
In accordance with the "one country, two systems" principle agreed between the UK and the PRC, the socialist system of PRC would not be practised in the Hong Kong Special Administrative Region (HKSAR), and Hong Kong's previous capitalist system and its way of life would remain unchanged for a period of 50 years until 2047." [1]
[1] https://en.wikipedia.org/wiki/Sino-British_Joint_Declaration