Hong Kong has overcome its challenges and "risen from the ashes", China's President Xi Jinping says, as he arrived in the former British colony to celebrate 25 years since its return to Chinese rule.
Mr Xi is to swear in , on Friday during his first visit to the city since 2017, which is also his first known trip outside the mainland in more than two years, amid the COVID-19 pandemic.
Wearing masks, Xi and his wife, Peng Liyuan, stepped off a high-speed train on Thursday to be greeted by children waving flowers and Chinese and Hong Kong flags who chanted, "Welcome, welcome, warmly welcome" in Mandarin.
"Hong Kong has withstood severe tests again and again, overcoming challenges one by one," Mr Xi said. "After the wind and rain, Hong Kong has risen from the ashes."
Authorities organised a lion dance celebration while a police band played. Heavy security surrounded the train station, with police making stop-and-search checks, assisted by sniffer dogs.
Some analysts see Mr Xi's visit as a victory lap after Beijing tightened its control of Hong Kong with a sweeping national security law, following .
and her husband were among those who welcomed Mr Xi at the train station, unused for two years because of the pandemic.
City streets were festooned with red China flags and posters declaring a "new era" of stability.
Mr Xi's full official schedule for the visit has not been released. It was not immediately clear if the celebrations would be affected by a typhoon forecast by weather officials on Wednesday.
On his last visit to Hong Kong, Xi warned against any acts endangering China's sovereignty, saying the city needed to beef up its national security arrangements.
While tens of thousands of protesters had marched during Xi's visit five years ago, no protests are expected this year.
Students attend a Chinese national flag raising ceremony at a secondary school to mark the 25th anniversary of Hong Kong handover to China, in Hong Kong, on 30 June, 2022. Source: AAP, AP / Kin Cheung
Police closed parts of Hong Kong, blocking roads and enforcing a no-fly zone over the central Victoria Harbour.
Members of pro-democracy group the League of Social Democrats said they would scrap plans for demonstrations after national security officers warned them not to protest during Mr Xi's visit.
Incoming leader Mr Lee, a former policeman the United States has placed under sanctions over the national security law, and Ms Lam have been taking daily COVID-19 tests and staying in a quarantine hotel for days before Mr Xi's visit, media said.
Hong Kong's 2,000 new coronavirus infections on Wednesday were its highest since April.
China's strategy of stamping out COVID-19 outbreaks as soon as they occur, at just about any cost, contrasts with a global trend of co-existing with the disease.
Mr Xi said the strategy was "correct and effective" and should be firmly adhered to, during a visit on Tuesday to the central city of Wuhan where the virus was first reported.
Journalists from several local and international media organisations have been blocked from covering the ceremonies, with the Hong Kong government citing security requirements.
Mr Xi, who is poised to secure a precedent-breaking third leadership term at a once-in-five-years Communist Party congress this year, is expected to spend the night in Shenzhen on Thursday before departing from Hong Kong on Friday.