North Korean leader Kim Jong Un and Russia's Vladimir Putin flanked Xi Jinping at a massive parade of military might in Beijing on Wednesday, capping a week of diplomatic grandstanding by the Chinese president and his allies against the West.

In unprecedented scenes, Xi shook both their hands and chatted with the pair as they walked down a red carpet by Tiananmen Square, with Putin to Xi's right and Kim to his left.

RTL

An unmanned aerial vehicle is seen during a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

The event, ostensibly to mark 80 years since the end of World War II, was a chance for Xi to put on an extravaganza to showcase China's military prowess and bring together friendly leaders to send a message to the rest of the world.

Kicking off the parade, President Xi warned the world was still "faced with a choice of peace or war", but said China was "unstoppable".

China's enormous new intercontinental ballistic missile DF-5C, with a range of 20,000 kilometres, counted prominently among the tonnes of hardware on display.

RTL

Birds are released at the end of a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

The heavily choreographed event drew an acidic response from President Donald Trump who accused the three leaders of plotting against the United States.

"Give my warmest regards to Vladimir Putin, and Kim Jong Un, as you conspire against The United States of America," he wrote on Truth Social.

- Military hardware on show -

During the 90-minute parade, Xi inspected the massed troops and weaponry from an open-topped limousine down Beijing's vast Chang'an Avenue, before turning back to join his guests in a seating area above the iconic portrait of Mao Zedong on Tiananmen, the entrance gate of the historic Forbidden City.

RTL

China's President Xi Jinping starts his inspection of the troops during a military parade in Beijing’s Tiananmen Square / © AFP

China's huge collection of military vehicles and heavy weapons rolled past the dignitaries, while images of thousands of servicemen and women in immaculate uniforms marching in tight ranks and soldiers jumping in and out of vehicles were shown in a slick state media broadcast.

Besides the ICBMs, new underwater drones and supersonic missiles counted among the latest gear on display.

Beijing residents went out into the streets to catch a glimpse of a spectacular flypast involving scores of warplanes and helicopters, some making an "80" formation.

RTL

Chinese troops march during a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

Millions of Chinese people were killed during a prolonged war with imperial Japan in the 1930s and 40s, which became part of a global conflict following Tokyo's attack on Pearl Harbor in 1941.

- Whirlwind week -

All eyes were on how the trio of Xi, Putin and Kim -- who rarely leaves secretive North Korea -- interacted with each other, but the state media broadcast only offered rare snatches of the three together and foreign journalists were kept at a distance and told not to film or photograph the leaders.

RTL

DF-5C intercontinental ballistic missiles are seen during a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

The event was the climax of a whirlwind week for Xi, who hosted a slew of Eurasian leaders for a summit aimed at putting China front and centre of regional relations.

The club of 10 countries, named the Shanghai Cooperation Organisation (SCO), touts itself as a non-Western style of collaboration in the region and seeks to be an alternative to traditional alliances.

RTL

Military aircraft fly in formation during a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

During the summit, Xi slammed "bullying behaviour" from certain countries -- a veiled reference to the United States -- while Putin defended Russia's Ukraine offensive, blaming the West for triggering the conflict.

Many of the guests from the Tianjin gathering, including Putin, Belarusian President Alexander Lukashenko and several other leaders, joined Xi for the Beijing parade.

However, no major Western dignitaries were among the two dozen world leaders at the event.

- Political influence -

Security around Beijing was tightened, with road closures, military personnel stationed on bridges and street corners, and miles upon miles of white barriers lining the capital's wide boulevards.

RTL

China's flag is raised as a military band plays during a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

China has touted the parade as a show of unity, and Kim's attendance is the first time he has been seen with Xi and Putin at the same event. It is only his second reported trip abroad in six years.

Kim was accompanied on the trip by his daughter Kim Ju Ae, who was pictured arriving at Beijing Railway Station, and his sister Kim Yo Jong, who was photographed by AFP at a gala lunch on Wednesday.

Putin and Kim held talks after Wednesday's parade, during which the Russian president thanked Kim for deployments of North Korean soldiers to aid Russia in its conflict with Ukraine.

RTL

People gather on a street outside the designated area before a military parade marking the 80th anniversary of victory over Japan and the end of World War II, in Beijing’s Tiananmen Square / © AFP

Lam Peng Er, principal research fellow from the East Asian Institute at the National University of Singapore, said Kim's visit "demonstrates to the North Koreans and the world that he has powerful Russian and Chinese friends who treat him with respect".

"China also shows that it has convening power and political influence to bring Putin and Kim Jong Un together," he told AFP.