Tens of thousands gathered in Hong Kong Wednesday for one of its most colourful festivals, a whirlwind of music and costume culminating in a dramatic climb up a precipitous “bun tower”.

Pipers, drummers and lion dancers accompanied by a cacophony of cymbals filled the streets of the normally sleepy island of Cheung Chau, as part of the annual “bun festival” parade.

Cheung Chau bun festival 2017
Cheung Chau bun festival 2017. Photo: GovHK.

Young children in intricate outfits — posing as deities, local sporting heroes and even politicians — gave the impression of floating above the crowds as they were wheeled around on high pedestals.

See also: Video: Cheung Chau festival-goers compete at temple’s lucky ‘rice race’

Along the parade route shoppers bought bags of the sweet buns at the heart of the celebrations.

YouTube video

A late-night scramble by agile competitors up an 18-metre (60-foot) tower made from imitation buns was scheduled to top off the festivities.

The whole event harks back to the 19th century, when Cheung Chau was struggling to combat a plague and pirate raids.

Cheung Chau bun festival 2017
Cheung Chau bun festival 2017. Photo: GovHK.

The story goes that local fishermen paraded a statue of Taoist sea deity Pak Tai as part of a carnival to drive away the plague and evil spirits.

It worked — and Pak Tai has been a spiritual hero ever since.

YouTube video

The festivities today revolve around Cheung Chau’s Pak Tai temple and attract visitors from all over Hong Kong and abroad.

Kwok Yu-chuen runs one of the bakeries that pumps out the famous festival buns and has been working there for 40 years.

Made from rice flour and filled with sweet pastes including lotus seed, red bean and sesame, they are embossed with Chinese characters meaning “peace” and “safe” and symbolise health and prosperity.

Cheung Chau bun festival 2017
Cheung Chau bun festival 2017. Photo: GovHK.

“Many people hope for peace, safety and good health by eating the buns from Cheung Chau,” said Kwok, 53.

“That’s why they like to come here to join the celebrations.”

Real buns are no longer used to create the bun tower.

Cheung Chau bun festival 2017
Cheung Chau bun festival 2017. Photo: GovHK.

Instead, plastic buns lined a steel frame as part of safety measures brought in after an old-style structure — made from bamboo and real buns — collapsed in 1978 and caused injuries.

But competitors each year still scale heady heights, stuffing buns into sacks they are carrying as they climb.

Buns from the top of the tower carry the most points and the highest scorer is the winner.

Agence France-Press (AFP) is "a leading global news agency providing fast, comprehensive and verified coverage of the events shaping our world and of the issues affecting our daily lives." HKFP relies on AFP, and its international bureaus, to cover topics we cannot. Read their Ethics Code here