PHILADELPHIA (CBSDFW.COM/AP) — Pennsylvania’s highest court ordered a judge to free rapper Meek Mill on bail while he appeals decade-old gun and drug convictions and he was released Tuesday afternoon.

The State Supreme Court directed a Philadelphia judge who had jailed him to immediately issue an order releasing him on unsecured bail.

Mill was sentenced in November to two to four years in prison for violating probation.

gettyimages 842506670 e1524604311919 Rapper Meek Mill Released From Jail After Court Order

Meek Mill performs as a surprise guest during Jay-Z’s set during the 2017 Budweiser Made in America Festival at Benjamin Franklin Parkway on September 3, 2017 in Philadelphia, Pennsylvania. (Photo by Zachary Mazur/FilmMagic)

Mill issued a statement saying his five months in jail have been “a nightmare” and thanking all his supporters.

A team of lawyers and public relations consultants had waged an all-out battle to get him freed on bail.

Back in November, performer Jay-Z offered his support for Mill in a Facebook post and again during a show in Dallas at the American Airlines Center according to the fader.com.

Prosecutors say they believe Mill should get a new trial because of questions raised about the credibility of his arresting officer.

gettyimages 947067328 Rapper Meek Mill Released From Jail After Court Order

Supporters attend a rally protesting the imprisonment of Meek Mill outside the Philadelphia Criminal Justice Center during the rapper’s status hearing on April 16, 2018 in Philadelphia, Pennsylvania. (Photo by Brian Stukes/Getty Images)

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)

Listen Live