Kodak Black was placed under arrest on firearms charges as he was preparing to take the stage Saturday night to headline the Rolling Loud music festival in Miami.

CNN reports the rapper (real name: Bill K. Kapri) was taken into custody for alleged state and federal firearm violations, with Roberto Gonzalez of the U.S. Marshals Office of the Southern District of Florida confirming he was arrested by U.S. Marshalls assisted by federal agents from the U.S. Bureau of Alcohol, Tobacco, Firearms and Explosives.

RELATED: Kodak Black Released After Being Arrested At U.S.-Canada Border Carrying Guns And Marijuana

According to the Miami Herald, a statement from the U.S. Marshals Office says the arrest comes after an “extensive investigation” into the 21-year-old rapper, who is being booked into Miami’s Federal Detention Center.

Saturday’s arrest was the latest brush with the law for Kodak Black, who was arrested last month on drug and weapons charges while crossing the border from Canada into the U.S.

In addition, he was arrested in Florida in January 2018 on an array of charges, including marijuana possession, child neglect and grand theft, and also faces charges of raping a high school student in South Carolina.

RELATED: Kodak Black Cancels All Canadian Concert Dates Following Arrest At Border

Following the arrest, rapper Lil Wayne — who was also scheduled to perform at the festival — took to Twitter to tell fans that he was refusing to perform after “Festival Police (Not Rolling Loud) made it mandatory that I had to be policed and checked to get on the stadium grounds. I do not and will not ever settle for being policed to do my job and give you guys a great show.”

Click to View Gallery
Celebrity Mugshots