President Xi Jinping hailed China’s “irreversible” course from humiliated colony to great power at the centenary celebrations for the Communist Party of China (CPC) on July 1, in a speech reaching deep into history to remind patriots at home and rivals abroad of his nation’s rise.

Speaking above the giant portrait of Mao Zedong, which dominates Tiananmen Square, from the podium where the famous chairman proclaimed the People’s Republic of China in 1949, Xi said the “era of China being bullied is gone forever” praising the party for uplifting incomes and restoring national pride.

In a speech which drew a line from the humiliation of the Opium Wars to the struggle to establish socialist revolution in China, Xi said the party has brought about “national rejuvenation” lifting tens of millions from poverty and “altered the landscape of world development”.

The era of China “being slaughtered and bullied is gone forever”, said Xi, wearing the ‘Mao-style’ jacket, adding that the “great rejuvenation of the Chinese nation has entered an irreversible historical course”.

In the summer of 1921 Mao and a clutch of Marxist-Leninist thinkers in Shanghai founded the party which has since morphed into one of the world’s most powerful political organisations.

It now counts around 95 million members, garnered over a century of war, famine and turmoil, and more recently a surge to superpower status butting up against western rivals, led by the US.

In a ceremony of pomp and patriotism, thousands of singers, backed by a marching band, belted out stirring choruses including “We Are the Heirs of Communism” and “Without the Communist Party there would be no New China” as maskless invitees cheered and waved flags in a packed Tiananmen Square.

A fly-by of helicopters in formation spelling ‘100’ – a giant hammer and sickle flag trailing – and a 100-gun salute followed, while young communists in unisons pledged allegiance to the CPC.

Xi’s speech braided the economic miracle of China with the longevity of the party.

He has cemented his eight-year rule, ending term limits and declining to anoint a successor.

Under him the CPC has pivoted to new challenges; using tech to renew its appeal for younger generations – 12.55 million members are now aged 30 or younger – while giving a communist finish to a consumer economy decorated by billionaire entrepreneurs.

At the same time, Xi has presented a defiant face to overseas rivals led by the US, revving up nationalist sentiment and marketing himself as the champion of a newfound Chinese pride.

In its 100th year, the CPC has delivered a selective version of history through films, ‘Red’ tourism campaigns and books.

The party has driven attention to China’s rebound from Covid-19, which was first detected in the country in the central city of Wuhan, but has been virtually extinguished inside the country, according to official figures.

July 1 also marks the 24th anniversary of the handover of former British colony Hong Kong to China.

And one year ago, China imposed a national security law on the city in response to huge – often violent – protests.