The Metropolitan Police said officers were attacked when they arrived to close down the illegal party advertised on Facebook as "Scumoween: A Nightmare on Scum Street" at an address in Lambeth in central London late last night.
Four officers were treated for injuries at the scene and a number of arrests have been made.
"The disorder and criminal damage around the venue has stopped," said a Met Police statement today.
"As well as attacking police, the group also caused criminal damage to private vehicles and property in the area," it added.
More From This Section
Of the 13,000 invited guests on the social networking site Facebook, about 4,000 said they planned to attend.
Crowds first gathered at Albert Embankment, across the Thames river from Westminster, before dispersing down Lambeth Road on to Lambeth High Street and nearby Whitgift Street.
They reportedly charged at police, set fire to bins and chanted "scum" and "pigs".
"At the end of the day we want to leave them remembering our good attitudes, we just came to dance, we are not their enemy.