Two weeks ago, 20-year-old Michaella McCollum Connolly and 19-year-old Melissa Reid were arrested at Lima airport as they tried to board a flight to Spain carrying what Peruvian police said was 11 kilogrammes (24 pounds) of cocaine.
Connolly had previously been reported missing from her job on the Spanish holiday island of Ibiza, and well-wishers had launched a large-scale Internet campaign to find her.
After their arrest, the women told British reporters that they had been kidnapped by a drugs cartel, taken to Peru and forced to transport drugs.
"They have left police custody and been handed over to state judicial authorities," Colonel Tito Perez, head of the Peruvian police's anti-drug command, told AFP.
The pair was led into the court in handcuffs, as photographers and Reid's British parents, who flew out in recent days to support her, looked on.
