BEIJING (Reuters) - China introduced a law on Friday making it potentially criminal to defame or deny the deeds and spirit of the country’s historic martyrs, state media said, the latest move to protect symbols of state.

FILE PHOTO: Chinese President Xi Jinping speaks with Russian Foreign Minister Sergei Lavrov (not pictured) during a meeting at the Great Hall of the People in Beijing, China April 23, 2018. Naohiko Hatta/Pool via REUTERS

President Xi Jinping has ushered in a series of laws in the name of protecting China and the ruling Communist Party from threats both within and outside the country, as well as presiding over a crackdown on dissent and free speech.

China’s largely rubber stamp parliament introduced legislation to protect the name, image, reputation and honor of the country’s historic heroes and martyrs, the official Xinhua news agency said.

“It is prohibited to misrepresent, defame, profane or deny the deeds and spirits of heroes and martyrs, or to praise or beautify invasions,” according to Xinhua’s summary of the law.

Those who do so will be punished in accordance with the law and may be investigated for criminal responsibility, Xinhua added.

The party has long kept a tight grasp of its history, with its legitimacy resting in part on victories over the Japanese forces in World War Two and over the Nationalists to end China’s civil war in 1949.

Under Xi, attempts to reevaluate the core events and characters of the party’s revolutionary narratives have been met with fierce resistance and the party warns scholars repeatedly to shun “historical nihilism”.

Heroes and martyrs who gave their lives to the parties various causes fill museums across China and are featured in school textbooks to impart lessons of valor, loyalty and patriotism.

Disputing party history and questioning the deeds of heroes have already landed some historians in court.

A court ordered a former magazine editor to publicly apologize last year for two articles written in 2013 questioning the details of a well-known story about Communist soldiers fighting the Japanese in World War Two.