LA police told the BBC they had responded to reports of a nude man walking in the street along Ventura Boulevard in Studio City. He charged at officers when they got to the scene, officer Drake Madison said.
Lil Nas X spent the weekend in jail after the arrest.
Los Angeles County District Attorney Nathan Hochman said three officers were injured during the incident while trying to take the rapper into custody.
“Attacking police officers is more than just a crime against those individuals but a direct threat to public safety,” he said on Monday. “Anyone who assaults law enforcement will face serious consequences, no matter who they are or how famous they may be.”
The rapper is expected to release his much-anticipated second studio album Dreamboy later this year, and has recently teased new music on Instagram.
Lil Nas X became the first openly gay man to receive a Country Music Association award, after he won with Old Town Road in 2019.
He won two Grammy Awards in 2020 for Old Town Road, after collaborating with Billy Ray Cyrus.
The song also won two Grammys and broke the record for the longest-running number one song on the Billboard Hot 100, after 17 weeks at the top of the charts.
The singer has courted controversy throughout his career, with some conservatives in the US criticising the music video for his hit single Montero (Call Me By Your Name).
The singer responded with a fake apology video on YouTube, which cut into Montero’s infamous lap-dancing scene, and wrote on Twitter that he wanted his haters’ tears to “fill my Grammy cup”.BBC