Sri Lanka's Prime Minister Ranil Wickremesinghe was poised to form a new broad-based unity government on Thursday with the backing of President Maithripala Sirisena's followers after winning parliamentary elections.
Wickremesinghe's United National Party (UNP) fell seven seats short of an absolute majority in the 225-member legislature in Monday's election when he saw off a challenge by the island's former president Mahinda Rajapaksa.
Rajapaksa had been standing as a candidate of the United People's Freedom Alliance (UPFA) which is officially led by Sirisena, even though the two men are now arch rivals.
While Rajapaksa and a rump of his hard-core supporters are expected to remain on the opposition benches, another faction loyal to Sirisena is going to link up with the UNP, according to one of its leaders.
"We will support the formation of a national government, at least for a period of two years," Duminda Dissanayake told reporters after meeting Sirisena in Colombo.
Officials said Wickremesinghe was expected to be sworn in by the President at his sea-front office on Friday morning and his new cabinet could include some of the defectors.
The break-up of the UPFA had been widely expected given the splits between the factions loyal to Sirisena and Rajapaksa who surprisingly lost a January presidential election after nearly a decade in power.
Sirisena had been an ally of Rajapaksa, serving as health minister before splitting from his mentor and running against him for the presidency.
After winning the contest in January, Sirisena then turned to Wickremesinghe's UNP to lead a minority government.
But after its programme was consistently blocked in Parliament where Rajapaksa's followers remained in the ascendant, Sirisena decided to call elections a year ahead of schedule to break the logjam.
How many of the 95 UPFA members who won seats will join the government is not yet known. Rajapaksa has indicated that he does not want to be the formal opposition leader but will instead be a backbencher.
Sirisena wants to reverse many of the constitutional changes brought in by Rajapaksa which gave huge powers to the President.
Wickremesinghe's government is likely to introduce legislation to establish independent commissions to run the police, public services and judiciary.
The Sri Lankan Parliament is due to open on September 1.