WikiLeaks founder Julian Assange has been granted bail at the High Court in London.
An appeal against a decision to release Assange on conditional bail earlier this week was rejected.
The 39-year-old is wanted in Sweden for alleged sex offences.
Mr Assange was present in the dock for the ruling in the courtroom which was packed with journalists.
Standing in the driving rain outside the High Court a small group of Assange's supporters shrieked with delight at news of the ruling.
They shouted: "Exposing war crimes is no crime."
Assange's mother Christine was also in court. She arrived flanked by plain-clothes bodyguards and police officers but did not comment.
Assange has been held in solitary confinement, only released from his cell at Wandsworth Prison for one hour a day and his mail has been heavily censored, according to his supporters.