“Ive learned from my mistakes, you know.

I come from nothing and Ive made something and I didnt take full advantage of it.

Im sorry,” the musician said in court.

Young Thug

Young Thug.Prince Williams/FilmMagic

Young Thugpleaded guilty Thursday to a number of charges in his lengthy racketeering trial.

Young Thug pleaded no contest to another gang charge and a racketeering conspiracy charge.

Prince Williams/FilmMagic

A representative for Young Thug declined to comment on the development.

Young Thug

Young Thug.Paras Griffin/Getty Images

Fulton County Superior Court Judge Paige Reese Whitaker gave the musician a 40-year sentence.

If there are violations, however, he’ll see another 20 years of probation.

“Ive learned from my mistakes, you know.

I come from nothing and Ive made something and I didnt take full advantage of it.

Im sorry,” the rapper said in court.

The saga began when Thug wasarrested in May 2022.

The rapper was later givensix additional felony charges, including drug and firearm charges, in August 2022.

He stood trial with five other defendants that were indicted alongside him.

Qua), andQuamarvious Nichols(also a.k.a.

Qua) accepted plea deals, according to AP.

All three of those defendants will serve time in prison in exchange for other charges being dropped.