Sri Lankan President Gotabaya Rajapaksa on Wednesday named his elder brother and former strongman Mahinda Rajapaksa as the new prime minister after incumbent Ranil Wickremesinghe announced his resignation from the post following the election debacle.
Mahinda, the current main opposition leader, will assume duties soon after incumbent Wickremesinghe steps down formally on Thursday.
Mahinda was appointed the Prime Minister on October 26, 2018 by the then President Maithripala Sirisena, who sacked Wickremesinghe in a controversial move that plunged the country into an unprecedented constitutional crisis.
He resigned in December as two crucial Supreme Court decisions made the former strongman's efforts to cling to premiership untenable.
The apex court later unanimously declared that the dissolution of Parliament by Sirisena was "illegal".
Mahinda won power in 2005 and went on to become South Asia's longest-serving leader. He became the country's youngest ever parliamentarian in 1970 at the age of 24.
The two brothers led a decisive campaign that helped end the island nation's three decade long civil war against the Liberation Tigers of Tamil Eelam.
Earlier in the day, Prime Minister Wickremesinghe announced his resignation, days after the ruling party's candidate lost the presidential election to Rajapaksa.
Rajapaksa defeated Wickremesinghe's deputy Sajith Premadasa.
In a special statement in Sinhala language, the Prime Minister said that he had met President Rajapaksa on Tuesday and discussed the future of Sri Lanka's Parliament, Colombo Gazette newspaper reported.
He said that while his Government still has the majority in Parliament it was decided to respect the mandate given to Rajapaksa at the Presidential election and step down.
"I will step down to allow the new president to establish a new government. I will officially inform him of my decision tomorrow," Wickremesinghe said.
He has been the leader of the United National Party since 1994 and served as Sri Lanka's prime minister for a total of three terms.
He was under pressure to quit and handover the government to the opposite camp after Rajapaksa won the presidential election on Saturday.
The UNP leader faced a revolt since Premadasa's defeat, a regular occurrence during the last 25 years whenever the UNP lost a major election.
Harin Fernando, a minister from the party's younger brigade, told reporters that they want Wickremesinghe to quit the party leadership and name Premadasa his successor for both the party leadership and the post of the main opposition leader.
"We will form our own party if he did not make the necessary changes this time," Fernando told reporters.
There will be a caretaker cabinet of 15 members to run the government until Rajapaksa will be constitutionally able to dissolve parliament after February 2020.