(CNN)The Netherlands this weekend barred Turkey's top diplomat from entering the country to address a political rally.
Why are Turkey and the Netherlands clashing?
That set off ugly diplomatic feuding, name-calling and popular unrest.
The spat erupted as citizens prepare to cast their ballots in votes that could radically alter the political landscape in both countries. What's going on?
Turkish President Recep Tayyip Erdogan has been intent on rallying the roughly 4.6 million expatriate Turks living in western Europe to vote in an upcoming Turkish constitutional referendum.
If passed, the referendum would transform Turkey's parliamentary system into a presidential one, effectively consolidating the power of three legislative bodies into one executive branch under Erdogan.
Germany, Austria and Switzerland sought to prevent referendum rallies taking place on their soil -- citing security and overcrowding concerns.
On Saturday, Turkish Foreign Minister Mevlut Cavusoglu attempted to enter the Netherlands to address a rally in the port city of Rotterdam.
The Dutch barred the diplomat from entering, also pointing to security concerns. Another minister was barred from entering the Turkish consulate in Rotterdam.
Protests broke out in both countries.
Cavusoglu has promised "tenfold" retaliation against the Netherlands
According to Turkish state-run news, Dutch diplomatic missions in Ankara and Istanbul had been closed off due to security concerns. The Turkish foreign ministry has told the Dutch ambassador, who is presently on leave and out of the country, he need not return "for a while."
Erdogan said the Netherlands is "sacrificing Turkish-Dutch relations." He accused the country of Nazism and likened the Netherlands to a "banana republic." He also called for sanctions.
"Nazism is still widespread in Europe, " he said.
Dutch Prime Minister Mark Rutte said the remarks were inflammatory and demanded an apology.
Turkey's "current rhetorical attacks" against the Netherlands led Denmark's Prime Minister Lars Løkke Rasmussen to postpone a meeting with his Turkish counterpart.
The dispute comes ahead of the Netherlands' general election Wednesday, with immigration from Muslim countries a key issue.
The election campaign has pitted two party leaders against each other, liberal incumbent Prime Minister Mark Rutte and populist far-right figure Geert Wilders. As leader of the Freedom Party, Wilders wants to stop immigration from Muslim countries, close mosques, ban the burqa and imprison radical Muslims who have committed no crimes on a "preventative" basis.
Rutte appears to have pushed himself to the right to compete with Wilders, in January writing an open letter in which he said immigrants who did not assimilate in the Netherlands should "behave normally, or go away."
Freelance journalist Robert Chesal told CNN the Dutch government's move was effectively "election-time grandstanding."
"Prime Minister Rutte could not possibly allow a huge Turkish campaign to take place in the city of Rotterdam or anywhere else in the Netherlands," Chesal said.
Meantime he said Erdogan was trying to show Turks that he had the power to influence Europe.
"So clearly Erdogan is making full use of this to position Europe as an enemy of Turkey to try to gain as much possible support for his referendum for more political power," Chesal told CNN.
European governments have been critical of Erdogan's commitment to basic freedoms since a failed coup attempt earlier this year.
Since then, Erdogan has cracked down on opposition, particularly journalists, academics and the public service sector.
Also, nearly 140 media outlets have been shuttered, more than 41,000 people have been arrested and about 100,000 workers have been dismissed from public service positions.
The country, a NATO member, jailed more journalists than any other country in 2016, according to the Committee to Protect Journalists.
Critics call the referendum proposal anti-democratic and say it's indicative of Erdogan's drift toward authoritarian rule.
German Chancellor Angela Merkel warned last week that Turkey's approach to democracy and the rule of law are "deeply problematic" to the country's future cooperation with the European Union.