Germany must decide if it is friends with Turkey, the Turkish foreign minister has said, after a breakdown in diplomatic relations that culminated in Turkish President Recep Tayyip Erdogan accusing Germany of “Nazi practices”.

Germany’s foreign minister Sigmar Gabriel said talks with his Turkish counterpart Mevlut Cavusoglu were “good, honest and friendly, but also hard and contentious”.

However, Mr Cavusoglu said although Turkey wanted to remain friends with Germany, “Germany must decide if Turkey is a friend or not”. He said Turkey would then take steps accordingly.

The talks come after German municipalities cancelled several rallies in support of a Turkish referendum to give Mr Erdogan sweeping new presidential powers.

Germany's Turkish Community holds huge rally in Cologne in support of Erdogan

Some rallies have gone ahead, with Mr Cavusoglu himself addressing a crowd in Hamburg and repeating Mr Erdogan’s assertion that Germany’s “practices are similar to those of the Nazi era”.

About 1.4 million people of Turkish descent living in Germany are eligible to vote in the referendum Turkey is to hold next month.

“There are lines that should not be crossed, and one of those is the comparison with Nazi Germany,” Mr Gabriel said.

Mr Cavusoglu’s comments echo those made over the weekend by Mr Erdogan, who said: “Germany, you don’t have anything to do with democracy. These current practices of yours are no different than the Nazi practices of the past.”

Mr Erdogan followed up his comments by saying he will “stir up the world” if he is banned from giving speeches in Germany.

“Now they think Tayyip Erdogan wants to go to Germany. I will go if I want to,” Mr Erdogan said. “If you don’t let me in, or restrain me from giving a speech, then I will stir up the world.”

Mr Cavusoglu said he had discussed a possible venue for the Turkish President’s rally in Germany with his counterpart.

In pictures: Turkey coup attempt Show all 17 1 /17 In pictures: Turkey coup attempt In pictures: Turkey coup attempt Turkish President Erdogan attends the funeral service for victims of the thwarted coup in Istanbul at Fatih mosque on July 17, 2016 in Istanbul, Turkey Burak Kara/Getty Images In pictures: Turkey coup attempt Soldiers involved in the coup attempt surrender on Bosphorus bridge with their hands raised in Istanbul on 16 July, 2016 Gokhan Tan/Getty In pictures: Turkey coup attempt A civilian beats a soldier after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016 REUTERS/Murad Sezer In pictures: Turkey coup attempt Surrendered Turkish soldiers who were involved in the coup are beaten by a civilian Reuters In pictures: Turkey coup attempt Soliders involved in the coup attempt surrender on Bosphorus bridge Getty In pictures: Turkey coup attempt Supporters of Turkish President Recep Tayyip Erdogan wave flags as they capture a Turkish Army vehicle Getty In pictures: Turkey coup attempt People pose near a tank after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016 Reuters In pictures: Turkey coup attempt Turkish soldiers block Istanbul's Bosphorus Brigde Getty In pictures: Turkey coup attempt A Turkish military stands guard near the Taksim Square in Istanbul Reuters In pictures: Turkey coup attempt Pierre Crom/Twitter In pictures: Turkey coup attempt Turkish soldiers secure the area as supporters of Recep Tayyip Erdogan protest in Istanbul's Taksim square AP In pictures: Turkey coup attempt People demonstrate in front of the Republic Monument at the Taksim Square in Istanbul Murad Sezer/Reuters In pictures: Turkey coup attempt Turkish soldiers detain police officers during a security shutdown of the Bosphorus Bridge Reuters In pictures: Turkey coup attempt Turkish Army armoured personnel carriers in the main streets of Istanbul Getty In pictures: Turkey coup attempt Chaos reigned in Istanbul as tanks drove through the streets EPA/TOLGA BOZOGLU In pictures: Turkey coup attempt Turkish President Tayyip Erdogan speaks to media in the resort town of Marmaris Reuters In pictures: Turkey coup attempt Supporters of President Erdogan celebrate in Ankara following the suppression of the attempted coup Reuters

It came as Dutch nationalist Geert Wilders sought to revive his parliamentary campaign by denouncing Turkey’s president as a dictator and protesting against plans for similar Turkish rallies in his country.

Mr Wilders led a small rally of a few dozen activists outside the Turkish embassy as he tried to recover from his anti-Islam Freedom Party’s slide in the opinion polls just one week before a parliamentary election in the Netherlands.

“Leave us alone, lobby in your own country, and stay away,” Mr Wilders said of Mr Cavusoglu’s plan to hold a rally in Rotterdam.

“Mr Erdogan is a mere dictator,” he added. “We would not allow lobbying for North Korea or Saudi Arabia in our country either,” he said, calling for the entire Turkish cabinet to be declared “persona non grata”.

​Mr Wilders’ opposition right-wing Freedom Party, which wants to shut mosques, ban the Koran, quit the European Union and stop Muslim immigration, led opinion polls for most of last year but is now losing ground to the conservative Christian Democrats (CDA) and the far-left Socialists.

Loading....

Adding to tensions, Turkey has not allowed any German consular access to a German newspaper reporter arrested in Istanbul.

Mr Erdogan has accused Deniz Yucel of being both a German spy and a “representative” of the outlawed Kurdish rebel group PKK, a claim Berlin has dismissed as “absurd”.

Mr Yucel, a reporter for Die Welt, was detained in Istanbul last month over his reports about a hacker attack on the email account of the country’s energy minister.

Mr Gabriel said he pushed for access to Mr Yucel, who has both Turkish and German citizenship, and lobbied for his release.

Even before the current rift, relations were already strained between the two countries over Germany’s criticism of Mr Erdogan’s crackdown following a failed coup as a flow of Turkish diplomats and soldiers sought asylum in Germany.