Pakistan's two main political parties have agreed to form a coalition government that will sideline independent candidates backed by jailed ex-Prime Minister Imran Khan.
The decision late Tuesday came after the recent election produced no clear winner.
With the army-backed Pakistan Muslim League-Nawaz (PML-N) short of votes to win a ruling majority, it said it was partnering with the Pakistan Peoples Party (PPP) as well as a handful of smaller parties to form the next government.
Loyalists of Khan, jailed on corruption charges, won the most seats as independent candidates in Thursday's election.
"The parties present here are almost two-thirds of the house that has been elected," said Shehbaz Sharif, president of the PML-N, alongside leaders of the PPP and two other groups.
He said they were even willing to talk to Khan to include the PTI in the next government.
"Forget and forgive; forgive and forget – come let's join hands for the betterment of the country," he said.
"Sacrifice self interests, set the issue of egos aside."
The press conference followed a hectic day of behind-the-scenes negotiations and even denials by PPP that they were ready to join forces with PML-N.
Earlier, speaking during a court appearance at Adiala Jail where he has spent much of his time since his arrest in August, Khan ruled out cooperation.
"We will neither sit with the PML-N nor with the PPP," he told a handful of reporters covering a procedural hearing at the prison outside the capital Islamabad.
The press conference by PML-N and PPP left a lot of unanswered questions about who would fill key positions in the next government and made clear there was still much negotiation to be done.
Sharif, who served as prime minister in the last government before the national assembly was dissolved, has said he wanted his older brother, three-time premier Nawaz Sharif, to return to office.
But PML-N's main spokesperson, Marriyum Aurangzeb, said later on X, the former Twitter, that the younger Sharif would lead the country.
"We have decided today that we will get together and form the government to lift Pakistan from difficulty," Asif Ali Zardari, PPP co-chairman and former Pakistan president told the press conference.
Candidates loyal to Khan took most of the seats in the polls, defying a months-long crackdown that crippled campaigning and forced them to run as independents.
But despite independents winning 101 national assembly seats, a government can only be formed by a recognized party, or coalition of parties, so they would have to join another group to become an effective bloc.
There were widespread allegations of vote-rigging and result manipulation after authorities switched off the nation's mobile phone network on election day, ostensibly on security grounds, and the count took more than 24 hours.
"We are going to challenge the election rigging in the Supreme Court of Pakistan, and we will consider the alliance later," Khan said Tuesday.
Earlier, PPP chairman Bilawal Bhutto Zardari, the son of Zardari and assassinated former prime minister Benazir Bhutto, said he would like to see his father become president again.
"And I am not saying this because he is my father. I am saying this because the country is in a huge crisis at the moment and if anyone has the capacity to douse this fire, it is Asif Ali Zardari," he said.