A Pakistani anti-terrorism court on Saturday extended former military ruler Pervez Musharraf judicial remand to prison for two weeks for sacking judges during his rule, officials said.
"The court has sent General Musharraf on judicial remand for two weeks," Muhammad Amjad, spokesman for Musharraf's All Pakistan Muslim League party, told reporters.
"Our lawyers denied the allegations that General Musharraf sacked judges and kept them and their families under house arrest for six months. It is absolutely untrue," Amjad said.
"We had requested the court to send General Musharraf on judicial remand, so that we can go to higher courts for relief," he added.
Musharraf appeared before the anti-terrorism court amid tight security, as hundreds of lawyers opposing him scuffled with security personnel and shouted slogans against the former ruler.
He had spent the night at police headquarters in Islamabad, officials said, and was moved back there after his court appearance, but it was unclear whether he will be kept there or in a prison.
"It depends upon the district administration whether they send him to jail or keep him at any secure place," a senior police official told AFP.
Musharraf was moved into police custody after being arrested on Friday, an unprecedented move against a former army chief of staff ahead of key elections.
The arrest relates to Musharraf's decision to sack judges when he imposed emergency rule in November 2007, a move that hastened his downfall.
Live television footage showed Musharraf getting out of his white bullet-proof SUV and being surrounded by dozens of security guards as he was brought into the courthouse.
Lawyers have petitioned Pakistan's top court to try him for treason for imposing emergency law -- which would be punishable by death or life in prison -- but it would have to be the state that initiates any trial.
He also faces charges of conspiracy to murder opposition leader Benazir Bhutto in 2007 and over the death of a rebel leader during a 2006 military operation.
Musharraf's supporters say the arrest order was nothing more than a settling of scores for his dismissal of judges nearly six years ago.
On Thursday, Judge Shaukat Aziz Siddiqui added terrorism to the charges, accusing him of spreading "fear in the society, insecurity amongst the judicial officers, alarm in the lawyers' community and terror throughout Pakistan".
Musharraf seized power in a bloodless coup, which was widely welcomed at the time in Pakistan, but he was forced out and threatened with impeachment in 2008.
The elected prime minister he ousted, Nawaz Sharif, is now the front-runner in the general election campaign.