"For the past 20 years, Hong Kong has always had the strong backing of the central government," Xi said Thursday as he addressed crowds at the city's airport.
It's Xi's first visit as Chinese leader to the special administrative region. From the tarmac, he encouraged Hong Kongers to "look forward to the future, making sure 'one country, two systems' can work smoothly and continue," referring to the principle by which Hong Kong retains limited autonomy and freedoms.
Xi said the 20th anniversary of the city's handover from the United Kingdom to China on July 1 is a huge event "for the country, and for Hong Kong."
Xi's first day in Hong Kong was a peaceful one, as predicted protests did not pan out. What rallies there were around town were mostly patriotic ones welcoming the Chinese President with songs and flags.
Huge banners were strung over the highway Xi took to the city, welcoming him for his "official inspection" and celebrating "20 years of Hong Kong's return to the motherland."
As Xi arrived at Hong Kong's Government House Thursday evening, to dine with Chief Executive CY Leung and other dignitaries, groups of pro-China demonstrators thronged a nearby road, wearing red caps and waving the country's flag.
A major reason for the relative calm is that former "Umbrella Movement" leaders Joshua Wong, Nathan Law and other activists are languishing in police custody after they were arrested Wednesday night.
As of Friday morning, all 26 protesters had been released from custody, a spokesperson for the activists confirmed.
Huge security operation
Much of Wan Chai, a bustling business district in the city center where Xi will stay, is on partial lockdown, with 300, 2-ton barricades erected on roads around the Hong Kong Convention and Exhibition Center. The venue will host many events marking the city's handover from the UK to China.
Events and celebrations
While in Hong Kong, Xi will spend little time anywhere near the public.
However, shortly after she arrived on Thursday, Xi's wife, Peng Liyuan, made a visit to a Hong Kong kindergarten, where she watched student performances and talked to the children, according to a Hong Kong government press release.
Peng was presented by the students with a fan covered in hand-painted pandas. She later joined Xi for dinner with Leung and incoming Hong Kong Chief Executive Carrie Lam at Government House.
Beijing is also sending its prized aircraft carrier to Hong Kong for the celebrations -- a show of military might not seen since it made the territory a special administrative region in 1997.
An elaborate celebratory gala will be held Friday evening at the Hong Kong Convention and Exhibition Centre, attended by Xi, Leung, Lam and other dignitaries.
Xi will leave the city on Saturday after swearing in Lam and attending a flag-raising ceremony to mark the 20 years since China assumed sovereignty over Hong Kong.
Attention will then turn to the annual July 1 pro-democracy march, which organizers expect to attract hundreds of thousands of people.
CNN's Serenitie Wang contributed reporting.