Rainbow-haired rapper Tekashi 6ix9ine was brutally beaten by a group of men inside the bathroom of a Florida gym Tuesday, according to footage of the attack posted online by OnlyInDade.

The 26-year-old musician and ex-con was rushed to the hospital after he was purportedly attacked inside the restroom of an LA Fitness in southern Florida.

A video posted to Twitter shows two men towering over 6ix9ine as he lies on the bathroom floor, trying to protect his head from the blows.

The men yell at him to “shut the f–k up” as one kicks his stomach and the other punches his head, according to the footage.

The “Gooba” rapper, whose legal name is Daniel Hernandez, walks out of the restroom with a bloodied face after the cameraman tells him he’s a fan.

6ix9ine’s attorney told TMZ that the Brooklyn native was inside the sauna when he was randomly jumped by several men.

He did not have security with him at the time.

Police and EMS were called and the rapper was taken to a hospital in an ambulance.

A photo obtained by the outlet shows the rapper’s face red and bloodied.

He also suffered injuries to his jaw, ribs and back, according to the site.

The attack is the second time 6ix9ine made headlines in less than a week.

PageSix reported that he was thrown out of a Miami baseball stadium Friday after causing a drunken ruckus and disturbing other fans.

The rapper has a notorious history.

He was sentenced to two years in prison in 2019 for his role in the Nine Trey Gangsta Bloods gang.

He was facing decades in prison on racketeering and other charges but took a plea deal that lowered his time in exchange for helping the feds take down his former Bloods associates.

The assistant US attorney said at the time that 6ix9ine “will forever have to look over his shoulder.”

It’s unclear if Tuesday’s attack had anything to do with the rapper’s cooperation with the feds, but his lawyer told TMZ that he plans to call the feds to ensure he gets proper protection.

ncG1vNJzZmimqaW8tMCNnKamZ2Jlf3R7j2xma2pfp66xvMSrZK2dm5bAqbWMb6CxcZmjsm6u0a6rmqScrnqjscCtnKdlmaPAqrDEZp2lp6KesaJ5xrKkaA%3D%3D