BERLIN — The populist, pro-Russian president of the Czech Republic fended off a vigorous challenge from a pro-European-Union political neophyte Saturday in an election widely seen as a referendum on whether the central European nation will tilt east or west.
The narrow victory delivered a second five-year term to Milos Zeman, the wily 73-year-old political veteran known for his inflammatory rhetoric, close ties to Moscow and self-described image as “the Czech Trump.”
“This, my dear, is my last political victory, and no loss will follow it,” a beaming Zeman told cheering supporters as he vowed to abide by a constitutional two-term limit.
The result marked a major defeat for pro-Western forces in the country, which had mobilized behind Jiri Drahos, a 68-year-old chemist. The low-key former head of the Czech Academy of Sciences had campaigned on a platform of robust support for the European Union and a more civil approach to politics.
In a speech to hundreds of deflated backers, Drahos congratulated the incumbent and said the ideals behind his campaign would live on.
“I am thankful for the enormous wave of energy that has surged with this election,” he said with an arm draped around his wife’s shoulder. “This energy cannot disappear. And I am convinced that it will not disappear.”
Polls going into the election showed a dead-even race. But the final tally gave Zeman a two-point edge at 51 percent, with some 66 percent of voters casting ballots in the nation of 10.5 million.
In the campaign’s final days, Drahos was hit by a barrage of online attacks, with websites, chain emails and social media posts spreading misinformation. The campaigns variously alleged that Drahos was behind a secret globalist society, had hidden plans to open the country to mass immigration and is a pedophile.
Drahos spoke out against the assault before the vote, saying it was “logical” to think that Russia was trying to interfere in the campaign. He did not directly address the issue Saturday, saying his campaign would wait to analyze the results.
The Czech president does not run the government; that job is carried out by the prime minister. But the presidency is an influential institution, one that sets the political tone for the country.
The president has the power to veto laws and appoint a prime minister, a particularly important role given that the country has been locked in political paralysis since the parliamentary elections in October.
That vote ended with the party of billionaire populist Andrej Babis coming out on top but needing partners to form a government. So far, he has been unable to find them, with other parties saying they will not support Babis as prime minister while he is under investigation for alleged fraud. Zeman appointed Babis as prime minister in December.
Zeman’s victory will be a boost for Babis, a close ally. Babis endorsed Zeman in the presidential campaign, while Zeman has said he will continue to support the businessman’s attempts to form a government.
With Babis and Zeman in charge, Czech advocates for closer integration of the country with its Western allies fear there could be a shift the other way. Hungary and Poland have bucked the E.U. in recent years, moving in a more populist and authoritarian direction. The Czech Republic has been more cautious, but it shares Hungarian and Polish resentment toward E.U. directives to take in refugees.
Although the Czech Republic has accepted just 12 of the 2,600 asylum seekers it was supposed to take — and despite Drahos’s joining Zeman in rejecting E.U. quotas — the president capitalized on the issue. Zeman’s campaign billboards read: “Stop immigration and Drahos. This country is ours.”
Drahos largely avoided talking about immigration, saying he disagreed with Zeman on style but not substance.The political newcomer had promised to govern with “politeness,” an implicit rebuke of Zeman’s polarizing approach.
Zeman has long seemed to delight in provoking outrage. He has said that Muslims are “impossible” to integrate in Europe and that E.U. leaders are “cowards.” He has also cultivated close ties with authoritarian leaders, including Russian President Vladimir Putin.
Katerina Santurova in Prague contributed to this report.