Natasa Pirc Musar, a lawyer, won the second round of Slovenia's presidential election on Sunday and will become its first female head of state, preliminary results showed.
Pirc Musar, 54, won 53.83 percent of votes in the runoff, while her rival, right-wing politician and former foreign minister Andze Logar, won 46.17 percent, according to election commission data based on 86.7 percent of the votes counted.
Turnout was 49.9 percent, the commision data showed.
Although the role is mostly ceremonial, the president is commander in chief of the armed forces and also nominates several top officials, including the central bank governor. Most of the nominations have to be confirmed by parliament.
The new president of Slovenia, an EU and NATO member state, will replace Borut Pahor who has been active in politics for 30 years. A former fashion model who served two five-year terms, Pahor is often referred to in public as the Instagram president for his frequent use of the social network.
"I expect the next president to care about us, the citizens, to represent Slovenia in a good manner," Uros Pinter said after casting his ballot in Ljubljana. "I think it is time for a female president."
Pirc Musar, a former TV presenter who became an influential lawyer, campaigned on human rights, the rule of law and social welfare issues.
Logar's campaign slogan was: "Let's work together for the future". He had focused in his speeches on traditional family values and religion in the largely Roman Catholic country.
Read more on FRANCE 24 English
Right-wing candidate in lead as Slovenia heads for runoff vote
Liberal newcomer beats conservative three-time PM in Slovenian elections
EU leaders seek unity on how to face China, US, at Slovenia meeting