Pakistan’s former prime minister Imran Khan has pleaded not guilty to corruption charges a day after his arrest sparked nationwide protests.
Nearly 1,000 people have been arrested, police say, and eight people have died nationwide in the protests.
There is tight security at the police guesthouse where he is being detained, which is also serving as a courtroom.
The arrest dramatically escalated tensions between Mr Khan and the military at a time of economic crisis.
Conviction would permanently disqualify the former cricket star – prime minister from 2018 to 2022 – from standing for office. Elections are due later this year.
Dramatic footage showed dozens of security officers forcibly removing the 70-year-old from court on Tuesday, then bundling him into a police vehicle.
On Wednesday Mr Khan was indicted on charges that he unlawfully sold state gifts during his premiership, in a case brought by the Election Commission.
He denies the allegations and says he fulfilled all legal requirements.
It was the first of dozens of cases against him in which he has been formally charged.
For months he had avoided arrest, with his supporters at times fighting pitched battles with police to keep him out of custody.
Tuesday’s arrest was based on a new warrant for a separate corruption case, connected to the alleged transfer of land for Al-Qadir University, near Islamabad. The judge remanded Mr Khan in custody for eight days in this case.
Mr Khan’s Pakistan Tehreek-e-Insaf (PTI) party said he has not had access to legal counsel, and that the party will challenge the legality of his arrest in court.
The action by Pakistan’s anti-corruption body has led to violent protests across the country. The army has sent reinforcements to the capital and the country’s most populous province, Punjab.
The authorities in Khyber Pakhtunkhwa province have also requested troops be deployed to maintain security.
Extraordinary scenes on Tuesday evening showed Mr Khan’s supporters ransacking the corps commander’s residence in Lahore, smashing chandeliers and making away with peacocks – among other things – which they said were bought with “citizen’s money”.
Police in Islamabad used shipping containers to try to block routes through to the compound where Imran Khan was appearing before a judge.
The BBC witnessed clashes between protesters and the police in the middle of one of Islamabad’s main motorways.
Protesters began gathering after midday, some carrying with them PTI flags or wearing Imran Khan face masks.
Canisters of tear gas were fired into the crowd soon after they began to gather. The protesters attempted to hit the metal casings away using their sticks. There were no arrests during the 90 minutes the BBC were present.