Peru's ousted president put in provisional detention
A thousand protesters marched through Lima demanding Castillo's release before police dispersed the demonstration with tear gas, making several arrests.
"Pedro Castillo, Peru is with you!" and "If there is no liberation, there will be revolution!" the leftist's supporters chanted.
Protesters in the southern Andean cities of Ayacucho and Puno demanded early elections.
Peru's former president Pedro Castillo was placed in provisional detention, a day after he was ousted by lawmakers and arrested, accused of attempting a coup.
Prosecutors carried out a dawn raid on the presidency and some ministerial offices in search of evidence against Castillo, who is being investigated for "rebellion and conspiracy."
Looking visibly nervous and dishevelled, the toppled leftist appeared before the Supreme Court via videoconference as prosecutors sought a week's detention.
A judge granted the request, despite the argument of Castillo's lawyer Victor Perez that "the crime of rebellion was not committed" because it did not materialise.
Castillo's efforts to dissolve Congress and rule by decree were quickly stamped out by lawmakers who voted him out of office in a day of high drama, by the end of which he was in jail and his former vice president Dina Boluarte had taken over.
The United States praised Peru for ensuring "democratic stability," and the European Union expressed its support for the "political, democratic and peaceful solution adopted by the Peruvian institutions."