A$AP Rocky is a free man.

Following a three-day trial, the rapper has been released from jail after a judge ruled that he will not have to remain in custody while awaiting the verdict and sentence in his Swedish assault case.

The announcement was met with cheers in the courtroom.

Rocky is free to leave Sweden while they await a verdict, which is expected August 14. The other two defendants are also released and free to leave.

Rocky was behind bars for a month following his alleged involvement in a Stockholm street brawl on June 30.

Prosecutors asked the judge to impose a 6-month jail sentence for Rocky, claiming he should be punished for throwing a bottle at the alleged victim, Mustafa Jafari. They also wanted to keep him in custody pending the verdict because they say he continues to be a flight risk, but the judge disagreed.