The final results in Pakistan's general election have put independent candidates backed by jailed ex-PM Imran Khan's PTI party in the lead.
Independents won 101 of the National Assembly seats. BBC analysis shows 93 of them went to PTI-backed candidates.
That puts them ahead of ex-PM Nawaz Sharif's PMLN who won 75 and it is unclear who will form a government.
As wrangling continues, independent candidates who did not win have flooded courts with vote-rigging allegations.
Both the PTI, which was blocked from taking part in the election, and Mr Sharif's PMLN say they want to form the next government.
The result was a surprise as most observers had expected Mr Sharif's party - widely seen as having the powerful military's backing - to win, given Mr Khan had been jailed on charges ranging from corruption to having married illegally and his party was barred from the ballot sheet.
To govern, a candidate has to show they are at the head of a coalition with a simple majority of 169 seats in the National Assembly.
Nawaz Sharif's PMLN has said that it has started formal discussions with Bilawal Bhutto Zardari's PPP about forming a government. In a statement released by the PMLN the party said: "The leaders agreed to cooperate politically to bring the country to political stability."The two parties formed an alliance to oust Mr Khan, from power in 2022 and ruled until last August.
The Karachi-based MQM party has also made a surprising return in the polls, winning 17 seats, and could play a role in any coalition.
Of the National Assembly's 366 seats, 266 are decided by direct voting and 70 are reserved - 60 for women and 10 for non-Muslims - and these are allocated according to the strength of each party in the assembly.
Under Pakistan's rules, independent candidates are not eligible to be allocated reserved seats in parliament.
The PTI, among several other parties, has called for protests against the results, alleging they have been rigged.
On Sunday, police blocked streets near the electoral commission building in the city of Rawalpindi with barbed wire and large trucks, preventing any protestors from accessing it.
For about 90 minutes, a crowd of a few hundred protestors chanted on the street. Then the atmosphere turned. Police used several rounds of teargas to disperse the crowd, which then left the area.
The Punjab police told the BBC that there was a section 144 in place - a colonial-era law that stopped a gathering of more than four people.
This restriction had been put in place before the election until 12 February, but it detailed that civilians were not allowed to carry firearms, not that they were prevented from gathering.
Police in Islamabad said action would be taken against demonstrators.
The PTI's chairman had called for peaceful protests outside electoral commission offices where they were concerned about "forged" results.
Pakistani media reported that the PTI party claimed that the results of at least 18 National Assembly seats were "falsely changed" by election officers.
On Saturday, Mr Sharif - who is thought to be favoured by the military - called for other parties to help him form a unity government.
As negotiations got under way between Mr Khan's political rivals, experts have warned Pakistan could be facing a "prolonged period of political instability".
Dr Farzana Shaikh from the Chatham House think tank told the BBC that the Khan-linked independents were unlikely to be allowed to form a government and many people feared a "weak and unstable coalition" would result from any tie-up between Mr Sharif and the PPP.
Meanwhile, at least six PTI-backed candidates who did not win their seats have lodged legal challenges in the courts to try to get the outcome overturned.
Among them is Yasmin Rashid, who stood against Mr Sharif in Lahore. The petitioners allege collusion in the alteration of election results on specific forms.
Pakistani officials have denied any irregularities. The PMLN has also reportedly formed a legal team to address rigging allegations.
Latest Stories
-
Netflix debuts Grain Media’s explosive film
5 mins -
‘Expired’ rice scandal: FDA is complicit; top officials must be fired – Ablakwa
40 mins -
#TheManifestoDebate: We’ll provide potable water, expand water distribution network – NDC
58 mins -
IPR Ghana@50: Pupils educated to keep the environment clean
1 hour -
PenTrust CEO named ‘Best Pensions CEO’, company wins ‘Scheme Administrator Award’ at Ghana Accountancy & Finance Awards 2024
1 hour -
Alan Kyerematen’s ‘Brighter Future for Health Professionals’ in Ghana Revealed in Bono
2 hours -
#TheManifestoDebate: NPP will ensure a safer, cleaner and greener environment – Dr Kokofu
2 hours -
2024 Election: Police to deal with individuals who will cause trouble – IGP
2 hours -
Seychelles President’s visit rekindles historical and diplomatic ties with Ghana
2 hours -
Election 2024: EC destroys defective ballot papers for Ahafo and Volta regions
2 hours -
2024 Election: I am sad EC disqualified me, but I endorse CPP’s candidate – PNP’s Nabla
2 hours -
I want to build a modern, inclusive country anchored by systems and data – Bawumia to CSOs
2 hours -
Miss Health Ghana 2024: Kujori Esther Cachana crowned new Health Ambassador
3 hours -
Playback: The manifesto debate on WASH and climate change
3 hours -
Alan Kyerematen saddened by NDC and NPP’s neglect of Krofrom Market in the Ashanti Region
3 hours