Chinese President Xi Jinping said Hong Kong had been "reborn from the fire" as he arrived Thursday to mark the 25th anniversary of the city's handover, in his first visit since the business hub's democracy movement was crushed.

Xi's trip is a chance for the Chinese Communist Party to showcase its control after huge protests engulfed the city in 2019, prompting Beijing to impose a harsh crackdown.

A mammoth security effort has been launched for Chinese leader Xi Jinping's visit to Hong Kong
A mammoth security effort has been launched for Chinese leader Xi Jinping's visit to Hong Kong AFP / Peter PARKS

"In the past period, Hong Kong has experienced more than one serious test, and overcome more than one risk and challenge," Xi said after arriving at a high-speed train station in the heart of the city.

"After the storms, Hong Kong has been reborn from the fire and emerged with robust vitality."

Friday's anniversary also marks the halfway point of the 50-year governance model agreed by Britain and China under which the city would keep some autonomy and freedoms.

Graphic charting visits by China's leaders to Hong Kong at times of handover anniversaries
Graphic charting visits by China's leaders to Hong Kong at times of handover anniversaries AFP / STAFF

Critics say a national security law imposed by Beijing after the 2019 protests has eviscerated those promised freedoms.

But Xi said Thursday "the facts have proved that One Country, Two Systems has great vitality".

"It can guarantee long-term stability and prosperity in Hong Kong, and defend the well-being of Hong Kong people," he added.

Graphic charting Hong Kong's growth, property costs and sentiment.
Graphic charting Hong Kong's growth, property costs and sentiment. AFP / STAFF
Chinese President Xi Jinping is expected to oversee Hong Kong's 25th handover celebrations
Chinese President Xi Jinping is expected to oversee Hong Kong's 25th handover celebrations AFP / DALE DE LA REY

Xi's visit is the first time he has left mainland China since the Covid-19 pandemic began.

Accompanied by his wife Peng Liyuan and Foreign Minister Wang Yi, he was greeted at the station by schoolchildren waving flags and bouquets of flowers and chanting "Welcome, welcome!" in Mandarin.

Officials including outgoing city leader Carrie Lam and her successor John Lee were present, as well as lion dancers and select accredited media.

Authorities have also sought to portray an image of public support for the celebrations
Authorities have also sought to portray an image of public support for the celebrations AFP / DALE DE LA REY

Details around the trip have been kept tightly under wraps, and the visit has sparked a massive security effort.

There are large-scale road closures on Hong Kong Island, and the flying of drones has been temporarily banned throughout the entire city, with police citing security concerns.

Those coming into Xi's orbit during the trip have been made to limit their social contacts, take daily PCR tests and check into a quarantine hotel in the days leading up to the visit.

Authorities have also sought to portray an image of public support for the celebrations
Authorities have also sought to portray an image of public support for the celebrations AFP / DALE DE LA REY

After arriving, Xi met with business and political elites, while Peng, a former celebrity singer, visited a Chinese opera theatre.

Peng and Xi are expected to leave Hong Kong to spend the night in neighbouring Shenzhen on the mainland before returning in the morning for the handover celebration and Lee's inauguration.

Media coverage has been tightly restricted.

Authorities have also sought to portray an image of public support for the celebrations
Authorities have also sought to portray an image of public support for the celebrations AFP / DALE DE LA REY

AFP has confirmed that 13 local and international journalists were denied accreditation to cover the official events, many for "security reasons".

Authorities have moved to eliminate any potential source of embarrassment during Xi's time in the city, with national security police making at least nine arrests over the past week.

The July 1 handover anniversary in Hong Kong has traditionally been marked by tens of thousands taking to the streets in peaceful rallies every year.

But mass gatherings have essentially disappeared in Hong Kong over the past few years under a mixture of coronavirus restrictions and a security crackdown aimed at eliminating any public opposition to China's uncompromising rule over the city.

The League of Social Democrats (LSD), one of Hong Kong's few remaining opposition groups, said it will not demonstrate on July 1 after national security officers spoke with volunteers associated with the group.

LSD leaders told AFP their homes had been searched, and that they had also had conversations with the police.

Chan Po-ying, the group's president, said that over the last few days she had begun to feel that she was being followed and watched.

"In the past there was something like this too, but not as bad as this year," the veteran activist said.

Hong Kong's top polling group announced that it would delay publishing the results of a survey that gauged government popularity "in response to suggestions from relevant government departments after their risk assessment".

The closed loop has kept Xi well out of the public's way.

At a high-end shopping mall next to the rail terminus where Xi arrived, a handful of spectators gathered near the edge of a glass facade but their view was completely blocked.

A housewife in her 40s surnamed Luk told AFP she was taking a look out of curiosity as her child was busy ice-skating.

"These couple of years, because of the pandemic, there's not much of a festive atmosphere. Hopefully this (visit) can cheer everyone up, as it is something happy."

But she said she had no plans to mark the 25th anniversary herself as her child had to prepare for exams.

"Hong Kong's handover is a historical fact, we can't deny it so we must accept it. As a Chinese person, we may as well accept it gladly," she said.

"There's nothing that can be changed anyway."