Members of the media take pictures on the Hong Kong side of the Hong Kong-Zhuhai-Macau bridge. REUTERS

The Hong Kong Link Road section. Bloomberg

The Hong Kong-Zhuhai-Macau Bridge is seen during a press tour in Hong Kong. AP Photo

A staff worker demonstrates how to use the ticket machine. AP Photo

China's President Xi Jinping launched the world's longest sea bridge connecting Hong Kong, Macau and mainland China on Tuesday at a time when Beijing is tightening its grip on its semi-autonomous territories.

Mr Xi announced the bridge officially open at a ceremony also attended by Hong Kong's and Macau's city leaders at a new port terminal in the southern mainland city of Zhuhai.

"I declare the Hong Kong-Zhuhai-Macau bridge officially open," Mr Xi said as digital fireworks exploded on a screen behind him in an indoor ceremony, before leaving the stage immediately. He did not address the audience.

It is the second major infrastructure project tying Hong Kong to mainland China to launch in a matter of weeks, after the opening of a high-speed rail link last month, and is part of a Beijing-driven strategy to create a sprawling "Greater Bay Area" economic hub.

Critics say the multibillion-dollar sea-bridge is one more way to integrate Hong Kong into China as fears grow that the city's cherished freedoms are being eroded.

The mega bridge will open to traffic on Wednesday.

A general view of the Hong Kong-Zhuhai-Macau bridge after its opening ceremony in Zhuhai. EPA

Chinese President Xi Jinping applauds during the opening ceremony. EPA

Building began in 2009 and has been dogged by delays, budget overruns, corruption prosecutions and the deaths of construction workers.

The launch ceremony was hastily announced last week by mainland authorities with Hong Kong legislators and transport companies complaining they had been left in the dark.

Supporters of the project promote it as an engineering marvel that will also boost business and cut travel time, while others see it as a politically driven and costly white elephant.

The main bridge section is considered mainland territory and Hong Kong cars and drivers travelling over it "must comply with the laws and regulations of the mainland", according to the city's transport department.

The opening ceremony of the Hong Kong-Zhuhai-Macau Bridge at the Zhuhai Port terminal on October 23, 2018. AFP

There was no ceremony on the Hong Kong side on Tuesday, but there was a heightened police presence in coastal areas near the bridge, with officers carrying out identity checks on journalists and members of the public.

Hong Kong residents will only be granted a licence to cross into Zhuhai by car if they meet highly selective criteria, including holding certain mainland government positions or making major contributions to charities in the southern Chinese province of Guangdong.

Most people will need to travel the bridge on coaches and buses.

Online commenters in Hong Kong complained about the bridge's restricted access ahead of the launch.

"Such a huge investment using the Hong Kong taxpayer's money... yet basically it is not open to us at all," said one comment on the South China Morning Post website.

But residents in Zhuhai welcomed the bridge.

"I think this bridge will bring great convenience to the whole area of Zhuhai, Hong Kong and Macao, and promote the economic development of the whole area of the Pearl River Delta," resident Dang Zheiliang told AFP.

Resident Can Binghua paid a visit to the bridge on his day off.

"Today I'm off duty, so I took my child to see the Hong Kong-Zhuhai-Macao Bridge. Now it's almost open to traffic. It's magnificent," he told AFP.