A young Christian girl said to have learning difficulties, who was arrested in Pakistan after allegedly burning pages of the Koran, has been granted bail.
Judge Muhammad Azam Khan ordered the release of Rimsha Masih, 14, who was arrested in a poor Islamabad suburb on August 16.
Judge Khan set the surety at 1 million Pakistani rupees - around £6,631.
A medical report found the girl had a lower than average IQ and she is said to have Down's Syndrome. She has been held in a high-security prison for around three weeks.
Reports suggested she had been burning papers collected from rubbish for cooking when someone entered her house and accused the family of burning pages inscribed with verses from the Koran.
A police officer said at the time that about 500 to 600 people had gathered outside her house demanding her arrest.
The case has highlighted Pakistan's harsh blasphemy laws, which human rights activists say are regularly used to persecute Christians.
Under the laws, burning a sacred text is punishable by life imprisonment.
Campaigners stepped up calls for the girl's release after police on Saturday arrested a cleric for allegedly tampering with the evidence.
Hafiz Mohammed Khalid Chishti is accused of trying to bolster the case against the girl by planting pages from the Koran among the burnt papers that were brought to him. He has denied the charge.