Liberal rights advocate Natasa Pirc Musar has won a run-off to become Slovenia’s first female head of state, and said her first task would be to bridge a deep left-right divide in the Alpine nation of two million people.

With nearly all of the votes counted in the small European Union nation, Ms Pirc Musar led Slovenia’s conservative former foreign minister Anze Logar by 54% to 46%.

Her victory boosts the country’s liberal bloc following the centre-left coalition victory in Slovenia’s parliamentary election in April.

“My first task will be to open a dialogue among all Slovenians,” she said as her election team celebrated.

Mr Logar conceded defeat, saying he hopes Ms Pirc Musar “will carry out all the promises” that she has made during the campaign.

Slovenia Presidential Election
Former foreign minister Anze Logar (Darko Bandic/AP)

Ms Pirc Musar, 54, will be the first woman to serve as president since Slovenia became independent amid the break-up of Yugoslavia in 1991.

A prominent lawyer, Ms Pirc Musar had represented former US first lady Melania Trump in copyright and other cases in her native Slovenia.

She trailed Mr Logar in the first round of voting two weeks ago.

But since none of the seven contenders who competed in the first round managed to gather more than 50% of the ballots to claim outright victory, Mr Logar and Ms Pirc Musar went forward to a run-off.

Analysts in Slovenia had predicted that centrist and liberal voters would rally behind Ms Pirc Musar.

Ms Pirc Musar will succeed President Borut Pahor, a centrist politician who had already served two terms in office.

While the presidency is largely ceremonial in Slovenia, the head of state still is seen as a person of authority. Presidents nominate prime ministers and members of the constitutional court, who are then elected in parliament, and appoints members of the anti-corruption commission.

Mr Logar, 46, served under former populist Prime Minister Janez Jansa, who moved Slovenia to the right while in power and faced accusations of undemocratic and divisive policies.

Mr Jansa was ousted from power in the parliamentary election in April.

Mr Logar had faced criticism that he was not really an independent candidate given his previous and current roles in Mr Jansa’s conservative SDS party.