Rapper Tekashi 69 will spend the rest of his jail sentence at home due to the coronavirus.
The rapper, real name Daniel Hernandez, had pleaded with the judge for leniency when the coronavirus pandemic began.
And the judge has now agreed and granted him a compassionate release from his New York prison, where he began his sentence in December 2019 for charges of racketeering.
Hernandez will see out the rest of his two-year sentence at home, under strict supervision.
TMZ reported he will have a GPS monitor for the first four months, and he must stay at an address approved by his probation officer.
He is only permitted to leave if he needs necessary medical attention or to visit his attorney, and it must be approved by the probation department.
Hernandez must also have a daily video conference with his probation officer.
He begged the judge to let him go home because he has asthma and so is more vulnerable to coronavirus.
In a letter obtained by TMZ, the rapper's attorney, Lance Lazzaro, asked the judge to release his client as soon as possible.
The letter, sent on Sunday, cites serious concerns for 6ix9ine's wellbeing because he has asthma, and therefore catching coronavirus could be much more serious.
Mr Lazzaro says his client has recently suffered from shortness of breath, but claims that prison officials won't let him see a doctor.
It comes after the jailed star's girlfriend claimed he will have a target on his back for the rest of his life after he "snitched" on his fellow gang members.
Rachel Wattley, an aspiring rapper who goes by the stage name Jade, took to Instagram to share a picture of herself posing up with her man, who was dressed in a white prison jumpsuit.
Tekashi could have faced 37 years behind bars, but was offered a more lenient sentence after he became a witness for the prosecution against his former fellow gang members.
The testimony he provided helped to convict Bloods gang members Aljermiah Mack and Anthony Ellison and reduced his sentence.