The official results of the Pakistan general elections have given victory to cricketer-turned-politician Imran Khan's party Tehreek-e-Insaf or PTI, according to reports. Mr Khan will, however, need to stitch an alliance to form a coalition government.
Results released by the Election Commission of Pakistan today showed PTI had won 115 seats. The National Assembly has 272 seats in total and the halfway mark is 137 for a simple majority.
Mr Khan's direct rival and jailed former Prime Minister Nawaz Sharif's party PML-N won 62 seats. The left-of-centre Pakistan People's Party or PPP led by Bilawal Bhutto, son of assassinated leader Benazir Bhutto, won 43 seats.
The PML-N initially rejected the so far incomplete results, but by Friday its leaders appeared to accept that Mr Khan would be the next prime minister.
"We are going to sit on opposition benches, despite all the reservations," said Hamza Shehbaz Sharif, a parliamentarian and the nephew of Nawaz Sharif, who is in prison after being convicted on corruption charges he disputes.
Results from some seats are still being counted, reports said.
Although Imran Khan appeared likely to fall short of the 137 seats needed for a majority in the National Assembly, his better-than-expected results mean he should have no problems forming a government with a handful of small coalition partners.
During a presidential style address on Thursday night, Imran Khan offered to investigate opposition claims of rigging and vowed to improve relations with India and Afghanistan, while calling for "mutually beneficial" ties with the US.
The allegations of rigging in Wednesday's election follow a bitter campaign in which Pakistan's powerful military was accused of tilting the race in favour of Mr Khan, and trying to erase democratic gains made since the last military regime ended in 2008.
"(PML-N) would play the role of a strong opposition," said Shehbaz Sharif, the PML-N president and brother of Nawaz Sharif, according to the English-language Dawn newspaper.
Imran Khan's party also appears to have succeeded in wresting control of the local assembly in Pakistan's biggest province, Punjab, from the Sharifs, according to the official but incomplete results. Punjab is home to more than half of Pakistan's 208 million people and had been the power base of the Sharif family for more than three decades.
India is closely monitoring the political situation in Pakistan. A nationalist party at the helm will affect the security of the people in Jammu and Kashmir as well as the rest of India in view of Pakistan's tacit support to terror. In his address on Thursday night, Imran Khan indicated he would be open to talks with India on Kashmir. "The biggest dispute between us is about Kashmir. We need to talk about Kashmir... We're still on Square 1. India sees Baluchistan, we see Kashmir... this blame game has to stop. We are ready to take two steps forward if you take one," he said.
In a tweet, Jammu and Kashmir's PDP leader Mehbooba Mufti congratulated Imran Khan.
Congratulations to @ImranKhanPTI on his victory. His hard work and tenacity won the day.
- Mehbooba Mufti (@MehboobaMufti) July 27, 2018
Mr Khan's success in the elections is a stunning rise for someone who has spent much of his political career on the fringes of Pakistan politics. In his speech peppered with populist pledges, Mr Khan promised to create jobs for the poor and said he would turn the palatial prime minister's official residence in the capital into an education facility, instead of living in it.
Track Latest News Live on NDTV.com and get news updates from India and around the world