the office was created to replace the governor of hong kong. the office, followed by the hong kong basic law, was created on 1 july 1997 when the sovereignty of hong kong was transferred from the united kingdom to the people's republic of china.