Pro-Russian incumbent Milos Zeman was re-elected Czech president on Saturday, narrowly outpacing his pro-European liberal rival Jiri Drahos in a knife-edge run-off that underscored deep divisions in the EU and NATO state.
The Kremlin was quick to offer its congratulations in a statement, saying that "Vladimir Putin emphasised Russia's appreciation for Mr. Zeman's stance favouring friendly Russian-Czech relations."
The populist ex-communist Zeman took 51.36 % of the vote against 48.63% for Drahos, Czech Television reported quoting full official results.
Czech TV pegged turnout for round two at 66.6%, the highest figure since parliamentary elections in 1998.
Political analyst Jiri Pehe said the outcome reflected the "very deep polarisation" of Czech society which is "split down the middle" along rural-urban and populist-liberal lines, echoing divisions elsewhere in Europe and in the US.
A former leftist prime minister, the 73-year-old Zeman represents poorer and rural voters with a lower level of education, while academic and political novice Drahos (68) appeals to wealthier, well-educated urbanites.
Zeman's victory comes amid a political crisis as billionaire populist Prime Minister Andrej Babis - dubbed the "Czech Trump" - is fighting police charges of EU subsidy fraud that are hampering his ability to form a government.
Speaking to a jubilant crowd at his Prague campaign headquarters, a jovial Zeman vowed to give political ally Babis plenty of time to cobble together a government.
He also struck an overtly populist tone by insisting that the "intelligence of journalists...(and) some politicians is significantly lower than that of normal citizens."
Congratulating Zeman on his narrow win, Drahos told backers in Prague that "we haven't won, but we haven't lost either," pledging he would not retreat from public life.
In the wake of the 2015 migrant crisis in Europe, the anti-Muslim Zeman staunchly opposed EU quotas designed to distribute asylum seekers across the bloc.
Even though the country of 10.6 million people has only received 12 migrants under the EU quota system, migration was a key campaign issue.
Zeman's stance on the European Union echoes other populist politicians in Poland and Hungary who are at odds with Brussels over the refugee quotas and various rules which they see as attempts to limit national sovereignty.
He once called the 2015 migrant crisis "an organised invasion" of Europe, claiming Muslims were "impossible to integrate".
Billboards across the Czech Republic sought to appeal to voters with anti-migrant messages: "Stop immigrants and Drahos. This is our country. Vote Zeman!"
According to Pehe, his position cast Zeman as "the defender of Czech national interests in the eyes of his supporters."
The pro-European Drahos had also opposed the EU quota system but had insisted the Czech Republic was strong enough to accept its allotted 2,600 refugees.
Drahos underscored his concerns about possible Russian meddling in the campaign, saying that "for (Russian President) Vladimir Putin's regime, NATO is the biggest enemy and we are part of NATO."
Zeman has repeatedly called on the EU to lift its sanctions on Russia over its 2014 takeover of Crimea from Ukraine.
Europe's fifth-biggest carmaker is dependent on auto exports, mainly to the eurozone, and its economy is expected to expand by 3.4% this year.
Running under the slogan "Decency is a strength," Drahos, a mild-mannered 68-year-old professor of chemical engineering who cuts a trim figure, could not have been more different from Zeman who is diabetic, walks with a cane and has become known as a heavy drinker and smoker.
Drahos fought off allegations of paedophilia and having been a Communist police agent, suggesting the accusations were a smear campaign by Russian intelligence with links to Zeman.
The president appoints the prime minister and government, central bank board members as well as judges and sign bills passed by Parliament into law.