Islamabad: Pakistan’s former Prime Minister Imran Khan has been granted bail in a case alleging he leaked state secrets, but he remains in jail on other charges ahead of the general election due in February 2024. The Supreme Court granted Khan bail in the case, but it was not clear how he could be released while serving a three-year sentence for corruption and facing other charges.

Imran Khan, detained since August, alleges that the powerful military is colluding with dynastic parties to crush his political party and prevent him from standing for office. He has faced a barrage of legal cases since being removed from office in April 2022.

The case for which Khan was granted bail involves allegations that he mishandled a diplomatic cable, known as a cipher, sent by Pakistan’s ambassador to the United States. Khan and his former foreign minister, Shah Mahmood Qureshi, both deny the charge, claiming the cable was proof of a conspiracy by the Pakistani military and the US government to topple his government in 2022.

A private trial in the cipher case initially took place inside the jail, but a legal challenge forced the court to restart open proceedings. On Friday, the Supreme Court stated in its short order that “there are not reasonable grounds for believing” that an offence under the Official Secrets Act was committed by Khan.