The governor's roles were seen in the Hong Kong Letters Patent and Royal Instructions. After the end of British rule and the transfer of Hong Kong to the People's Republic of China in 1997 the office was abolished (ended) and replaced with the Chief Executive of Hong Kong.