Khan could face several years in prison from the new charges, which accuse him of threatening police officers and the judge. However, he's not been detained on other lesser charges levied against him in his recent campaigning against the government.
The Pakistani judiciary also has a history of politicisation and taking sides in power struggles between the military, the civilian government and opposition politicians, according to the Washington-based advocacy group Freedom House.
Khan came to power in 2018, promising to break the pattern of family rule in Pakistan. His opponents contend he was elected with help from the powerful military, which has ruled the country for half of its 75-year history.
In seeking Khan's ouster earlier this year, the opposition had accused him of economic mismanagement as inflation soared and the Pakistani rupee plummeted in value. The parliament's no-confidence vote in April capped months of political turmoil and a constitutional crisis that required the Supreme Court to step in. Meanwhile, it appeared the military similarly had cooled to Khan.
Khan alleged without providing evidence that the Pakistani military took part in a US plot to oust him. Washington, the Pakistani military and the government of Khan's successor, Prime Minister Shahbaz Sharif, all have denied that. Khan also has been carrying out a series of mass rallies trying to pressure Sharif's government.
On Sunday, the internet-access advocacy group NetBlocks said internet services in the country blocked access to YouTube after Khan broadcast a live speech on the platform despite a ban issued by the Pakistan Electronic Media Regulatory Authority.
Police arrested Khan's political aide, Shahbaz Gill, earlier this month after he appeared on the private television channel ARY TV and urged soldiers and officers to refuse to obey "illegal orders" from the military leadership. Gill was charged with treason, which under Pakistani law carries the death penalty. ARY also remains off-air in Pakistan following the broadcast.
Khan has alleged police have abused Gill while in custody. Police say Gill suffers from asthma and has not been abused while detained.