Marxist legislator Anura Kumara Dissanayake has won Sri Lanka’s presidential election, according to data released by the Election Commission, as voters rejected the old political guard that has been widely accused of pushing the South Asian nation towards economic ruin.

Mr Dissanayake, whose pro-working class and anti-political elite campaigning made him popular among young people, secured victory over opposition leader Sajith Premadasa and incumbent liberal president Ranil Wickremesinghe, who took over the country two years ago after its economy hit rock bottom.

Mr Dissanayake received 5,740,179 votes, followed by Mr Premadasa with 4,530,902, Election Commission data showed.

The election held on Saturday was crucial as the country seeks to recover from the worst economic crisis in its history and the resulting political upheaval.

“This victory belongs to all of us,” Mr Dissanayake said in a post on X.