Tekashi69 entered a plea of guilty to all nine counts he had been charged with, detailing much of his alleged criminal activities in the Nine Trey Blood gang.

Tekashi, real name Daniel Hernandez, is facing life in prison for his crimes with the Nine Trey gang, but has struck a plea deal to help reduce his sentence, TMZ reported. His charges include numerous counts of racketeering, conspiracy, firearms offenses, and narcotics trafficking.

According to court documents, the rapper joined the Nine Trey Bloods in 2017. He admitted to helping the members of his gang attempt to kill its rival last March to “increase my own standing in Nine Trey,” TMZ reported. The following month, Tekashi said he and other members of the gang robbed a rival at gunpoint.

The April incident was followed by the Chief Keef shooting as Tekashi told the court, “I paid a person to shoot at a rival member of Nine Trey to scare him. The shooting took place in Manhattan. I did this to maintain or increase my own standing in Nine Trey."

Tekashi admitted to knowing the gang member that did the shooting, the news outlet reported. He also admitted to selling a kilo of heroin in 2017, according to TMZ. Court documents also indicated that Tekashi dealt heroin, fentanyl, ecstasy, amphetamines, and marijuana.

Tekashi apologized to the court for his crimes by saying, “I apologize to the Court, to anyone who was hurt, to my family, friends and fans for what I have done and who I have let down."

Tekashi’s sentencing is slated for Jan. 24, 2020. His trial date is set for Sept. 4.