The Supreme Court of Pakistan (SC) on Wednesday dropped contempt charges against Imran Khan, accepting his explanation that he never intended to bring senior judges into disrepute.

Khan, the head of Pakistan's third largest party, criticised the judiciary and election commission for inaction over alleged rigged at elections in May, when he won a political breakthrough.

But Khan, summoned for a second time before the Supreme Court, said he never criticised the senior judiciary and that undermining the supremacy of the judiciary was akin to undermining democracy.

"Why it is being misconstrued?... I only referred to the returning officers and never named the Supreme Court or the superior judiciary," Khan told the court.

"My entire struggle has been focused on an independent justice system," he said.

The court dropped the case.

"The notice is discharged," said Anwar Zaheer Jamali, head of the three-judge panel that heard the proceedings.

Pakistan's previous government accused the judiciary of politically motivated meddling when it sacked prime minister Yousuf Raza Gilani after finding him guilty of contempt.

Gilani was convicted for refusing to write to Swiss authorities asking them to re-open corruption cases against President Asif Ali Zardari on the grounds that he had immunity as head of state.

Pakistan Tehreek-e-Insaf (PTI) finished third place in the polls won by Nawaz Sharif's Pakistan Muslim League-N (PML-N), but formed a government in the northwestern province of Khyber Pakhtunkhwa.