Sri Lanka’s former defence secretary Gotabaya Rajapaksa has secured a comfortable victory in the nation’s presidential election.

Elections chief Mahinda Deshapriya announced the official results that Mr Rajapaksa won more than 6.9 million votes in Saturday’s election, 1.3 million votes more than his closest rival, Housing Minister Sajith Premadasa.

Mr Rajapaksa’s percentage of the vote was 52.25%, above the 50% plus one vote needed for victory.

Sri Lanka’s ruling party presidential candidate, Mr Premadasa, conceded defeat to Mr Rajapaksa, saying he would honour the decision of the people.

Sajith Premadasa
Sajith Premadasa has conceded defeat (Chamila Karunarathne/AP)

Mr Rajapaksa, the campaign front-runner who served as defence secretary under his brother, ex-president Mahinda Rajapaksa, pledged to restore security to the Indian Ocean island nation still recovering from terror attacks last Easter.

The results showcased deep ethnic and religious polarisation in a country that has seen decades of conflicts and bloodshed since independence from the UK in 1948.

Minority Tamils and Muslims voted overwhelmingly for Mr Premadasa, largely to stop a victory for Mr Rajapaksa.

President-elect Mr Rajapaksa appeared to try to allay minority scepticism in his speech after the official announcement of results.

“I have fully understood that I am the president of all citizens not only of those who voted for me but also all those who voted against me,” he said.

“Therefore I am well aware that I am bound to serve every Sri Lankan irrespective of race or religion.”

Mr Rajapaksa’s party headquarters in Colombo erupted with applause when the commissioner delivered the result on live TV.

His victory in Saturday’s vote marks the return of a family ousted from power in 2015 elections amid constant reports of nepotism, skimming off development deals with China and alleged human rights violations during the end of the decades-long war with the Tamil Tiger rebels in 2009.

The election also mirrors the global trend of populist strongmen appealing to disgruntled majorities amid rising ethno-nationalism.

“As we usher in a new journey for Sri Lanka, we must remember that all Sri Lankans are part of this journey. Let us rejoice peacefully, with dignity and discipline,” Mr Rajapaksa tweeted.

About 15 million people were eligible to vote, and Sri Lanka’s Election Commission estimated 80% turnout after polls closed.

Flanked by Buddhist monks at campaign events, Mr Rajapaksa focused his message on Sri Lanka’s majority Sinhala Buddhist population, who comprise about 70% of the island’s citizens. The second-largest group are ethnic Tamil Hindus at 12.6%, while 10% are Muslims and 8% are Christian.

He accepted support from Buddhist nationalist clerics who demanded the resignation of Muslim Cabinet members and governors they said were interfering with the investigation of the Easter attacks.

The Muslim politicians temporarily stepped aside.

Gotabaya Rajapaksa
Mr Rajapaksa was formerly Sri Lanka’s defence secretary (Eranga Jayawardena/AP)

The campaign said Mr Rajapaksa’s swearing-in ceremony would take place at Anuradhapura, a city about 124 miles from Colombo and the seat of the first Sinhalese kingdom known for a sacred tree that is said to be the southern branch of the Bodhi tree in India under which Lord Buddha attained enlightenment.

Though counting continued, the preliminary result reflected voting along ethnic lines, showing “a badly polarised country” that will embolden right-wing Buddhist clerics, said Kusal Perera, a political analyst and independent journalist.

“A Sinhala Buddhist theocratic state has been given a people’s mandate now,” he said.

Mr Premadasa swept the majority Tamil and Muslim districts in the country’s north and east, winning as much as 80% of the vote. In majority ethnic Sinhala areas, Mr Gotabaya secured around 60%.

Sinhala Buddhists’ votes usually do not vote as a bloc, unlike Sri Lankan minorities who have supported whatever party espoused policies comparatively favourable to them.