Mr Khan can appeal the judgment.
More than 100 people were tried in military tribunals.
A cold-war ally of the West, Pakistan has, in recent years, been leaning toward China along with several other nations in the region.
Mr Sharif’s party had initiated coalition talks with former President Asif Ali Zardari and some other small ethnic and Islamic groups on Friday.
Furthermore, leaders of Mr Khan’s party declared intentions to contest numerous election results in court.
The main opposition leader, former Prime Minister Imran Khan, remained in jail after back-to-back convictions on graft and moral charges.
The 70-year-old former sports star faces a flurry of charges since his removal as premier through a parliamentary vote of confidence last year.
Pakistan’s former Prime Minister Imran Khan was arrested on Tuesday as his workers clashed with riot police.
Former Pakistan Prime Minister Imran Khan has sustained gunshot wounds to his legs after his convoy was shot at during a protest march.
Pakistan prime minister congratulated the Afghan people on “breaking the shackles of slavery” in the wake of the Taliban’s takeover of Kabul.
