Gotabaya Rajapaksa has been sworn-in as Sri Lanka’s new president a day after he was declared winner of a closely contended election.

Rajapaksa, who is the first military officer to assume office, appealed to minority Tamils and Muslims – who form about 20 percent of Sri Lanka’s 22 million population – to rally around him.

He defeated the ruling United National Party (UNP) candidate Sajith Premadasa, securing 52.25 percent of the vote in Saturday’s election.

The oath of office was administered on Monday by the Chief Justice Jayantha Jayasuriya to Rajapaksa at the 140 BC Ruwanweli Seya Buddhist temple in the ancient kingdom of Anuradhapura in north-central Sri Lanka.

Addressing the nation after being sworn-in, Rajapaksa pledged to give national security priority and follow a neutral foreign policy.

“He has a huge task in lifting the Sri Lankan economy out of doldrums,” Al Jazeera’s Minelle Fernandez, reporting from Anuradhapura, said.

“The country faces a huge debt burden that the outgoing president inherited from Gotabya Rajapaksa’s brother and former President Mahinda Rajapaksa.

Fernandez said that the “debt repayment is quite crushing.”

“Sri Lankans are looking forward to the same efficiency of management, as many people we spoke to pointed out, the way Gotabaya ended the war. They are hoping that he approaches the economy and other issues with the same single-minded drive. And he produces results.”

Rajapaksa, 70, campaigned on the plank of security and economic revival. He has vowed to fight corruption and make Sri Lanka safe seven months after deadly Easter Sunday attacks blamed on Muslim groups.

The April attacks on churches and hotels left more than 250 dead and hit the tourism sector – a major revenue earner – hard, and it was one of the main election issues.

Gotabaya Rajapaksa is the younger brother of former President Mahinda Rajapaksa, and the two nationalist leaders gave the military a free hand to crush the Tamil separatists and end a 26-year civil war in 2009.

The Rajapaksa brothers are popular with the Sinhalese majority and the powerful Buddhist clergy.

A former lieutenant colonel in the army, Rajapaksa plans to rebuild the security arms of the state, including its intelligence cells and surveillance networks that he says the outgoing administration dismantled under international pressure.

In his first comments following his election victory, Rajapaksa said he would carry all his countrymen with him in the new Sri Lanka he planned to build.

Rajapaksa, dubbed the “Terminator”, is reputed to be a decisive leader who gets things done, whether it is finishing the war against Tamil rebels or developing the capital Colombo.

Critics are of the opinion that Rajapaksa should be tried for war crimes over allegations of killings, torture and forced disappearances during the final stages of the war against the Tamil rebels in 2009.

He also faces a civil suit in the United States for allegedly ordering the torture of a Tamil man and several others when he was in power.

Another civil action against him in a U.S. court in connection with the death of an anti-establishment newspaper editor in Sri Lanka in 2009 was rejected on the basis that Gotabaya had “foreign official immunity”.

He has brushed aside war crimes allegations.

As president, he has offered voters technocratic, military-style governance led by professionals rather than politicians.

Rajapaksa, an avowed Buddhist and vegetarian, left the army in the 1990s and moved to the U.S. where he worked in information technology.

Earlier this year, he renounced his U.S. citizenship since Sri Lankan law does not allow candidates with dual citizenship to run for president.