The final results of Pakistan's election have put independents, who mostly support jailed former prime minister Imran Khan, in the lead with 93 of 264 seats.
The Pakistan Muslim League (PML) of Nawaz Sharif, another former prime minister, was in second place with 75 seats after Thursday's vote.
The 74-year-old lacks a clear majority but the PML has emerged as the largest single party in parliament as Mr Khan's independents ran as individuals.
Mr Sharif and Mr Khan - a former Pakistan cricket captain and a legend of the sport - have both declared victory as it remains unclear who will form a government.
Mr Khan is in prison for convictions on charges ranging from leaking state secrets to corruption, but his supporters insist the charges are politically motivated.
Millions came out to vote for independents aligned with Mr Khan even though he cannot be part of any government while he remains in prison.
Mr Khan's sister Aleema told Sky News that Mr Sharif's claim of election victory is an "insult to Pakistanis".