By Rob Cameron for BBC News, Prague
Populist Peter Pellegrini has been elected president of Slovakia, succeeding the liberal Zuzana Caputova.
Pellegrini, 48, defeated the pro-Western Ivan Korcok, a former diplomat, with 53 percent of the vote.
A former prime minister, he is an ally of prime minister Robert Fico, and shares the PM's dovish attitude towards Russia.
Fico and his allies now control Slovakia's parliament, government and soon the president's office.
Slovakia had been one of Ukraine's staunchest allies before Fico came to power in October on a pledge to halt supplies of Slovak Army military stocks to Kyiv. With ellegrini replacing Caputova, Ukraine has now definitively lost a voice of support in an EU and Nato capital.
Fico has called for an end to Western military support for Ukraine, an immediate ceasefire and peace talks with Moscow. Fico said recently president Vladimir Putin had been "unfairly demonised" and argued admitting Ukraine to Nato would mark the beginning of a third world war.
Pellegrini's campaign echoed some of that Moscow-friendly rhetoric, accusing Korcok of being a warmonger who would send Slovak soldiers to fight in Ukraine - a constitutional power the president does not have.
Once Caputova steps down in June, there will no longer be any high-level official in Slovakia - a country which barely a year ago donated its entire fleet of MiG-29 aircraft to Ukraine - who unequivocally backs Kyiv's effort to defend its territory with force.
The liberal pro-Western opposition also accuses Pellegrini - as head of the coalition Hlas party and chairman of parliament - of remaining silent as Fico took a wrecking ball to Slovakia's criminal justice system, notably abolishing the Special Prosecutor's Office, which was set up 20 years ago to investigate serious corruption and economic crime.
It had tried a number of senior officials in Fico's Smer party, and had been overseeing the prosecution of those believed to be responsible for the murder of investigative journalist Jan Kuciak and his fiancée Martina Kusnirova in 2018.
The killings were a seismic event in Slovak politics. The fallout ended Fico's second premiership in 2018 and led to the liberal, pro-Western Zuzana Caputova being elected president on a wave of popular anger at official corruption and organised crime.
Fico's government recently set its sights on Slovakia's public broadcaster, submitting plans to abolish the institution and replace it with one under virtual state control. Those plans were put on the back burner after a surprisingly poor showing from Pellegrini in the first round of the presidential election two weeks ago.
The opposition fears a reinvigorated Fico will resubmit them - and they say president-elect Pellegrini is unlikely to stand in his way.
This story was originally published by BBC News.