Germany has told China to stop threatening Europe after Beijing said a politician from the Czech Republic who visited Taiwan this week would pay a "heavy price" for expressing support for the self-governing island facing Chinese subjugation.

Milos Vystrcil, the president of the Czech Senate, infuriated China by becoming one of the few senior European Union politicians to visit Taiwan. He told its parliamentarians "I am a Taiwanese," in what was interpreted as a reference to John F. Kennedy's anti-communist "Ich bin ein Berliner" speech of 1963, The Times of London reported.

President Xi Jinping wants to China to reunify with Taiwan, a self-governing country in Southeast Asia and remnant of non-Communist China. Beijing has said it is prepared to retake the island by force, if necessary.

On his visit to Taiwan this week, Vystrcil said: "I am convinced that it is the duty and obligation of every democrat to support all who defend democratic principles and who often find themselves building democracy under difficult conditions.

"I wish you an independent, true and just future. It is in your hands."

Heiko Maas, the foreign minister in Chancellor Angela Merkel's government, on Tuesday stood up for Vystrcil, telling his Chinese counterpart, Wang Yi, that "threats have no place here" and that Europeans stood together "shoulder to shoulder."

"We treat our international partners with respect and expect them to do precisely the same in return," he said.

Speaking after his meeting with Wang, Maas said Europe would not back down and allow itself to "become a political football in the great-power rivalry between the US, Russia, and China."

In a sign of Germany's hardening position toward China, Maas used his meeting with Wang to urge Beijing to remove the draconian national law it recently imposed on Hong Kong and allow United Nations officials to observe the treatment of detained Uighur people in China, the report said.

Wang is touring European capitals ahead of a meeting between Xi and EU leaders later this month.