Eight revellers were arrested and a full investigation launched after riot police were pelted with missiles including a suspected petrol bomb as they spent more than six hours trying to close down an illegal rave.
Trouble erupted on Halloween night in central London as hundreds of people attempted to get into the "Scumoween" event in a disused building in Lambeth.
A large number of revellers became increasingly violent and attacked police, prompting them to call in extra resources, Scotland Yard said.
Fourteen officers suffered minor injuries and were treated at the scene and a man was also treated by London Ambulance Service.
Police were on the scene throughout the night dealing with what they called "public disorder and criminal damage".
The rave was finally closed at 6am and while police said disorder had stopped they remain at the scene moving people on from inside the venue on Whitgift Street.
Commander Mak Chishty said: "Last night police faced hostility and attack; this is completely unacceptable.
"In challenging circumstances, officers demonstrated restraint and professionalism to protect themselves and members of the public present in the area. I would also like to pay tribute to the local residents for their patience and support last night."
Crowds first gathered on Black Prince Road at Albert Embankment before midnight, before dispersing down Lambeth Road on to Lambeth High Street and nearby Whitgift Street.
Police said they had posted officers at junctions to Whitgift Street to "to prevent any escalation" of the trouble.
But footage from the scene showed an angry mob throwing chairs, bottles and an object reported to have been a petrol bomb at police lines as they chanted "scum" and "pigs".
Police said: "During this confrontation a number of missiles were thrown at officers, including one reported 'petrol bomb'."
Bangers were also thrown, a male was seen letting off a fire extinguisher and bins were set alight on some surrounding streets.
Riot police, with dogs and shields, were seen drawing their batons against a charging crowd.
Scumoween: A Nightmare On Scum Street had been advertised on Facebook to take place in Whitgift Street beginning at 8pm on Halloween night and lasting all weekend.
Of 13,000 invited guests on the social networking site, 4,000 said they planned to attend.
The free event was due to feature music "from the full spectrum of underground dance".
In a warning on Wednesday to those due to attend, organisers Scum Tek said: "This party is going ahead, stay peaceful, stay calm. Patience and numbers is in our favour. Do not antagonise the police. We don't need to. 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."
A post encouraging people to "keep coming" and "don't give up" appeared on the Facebook page at around midnight when trouble flared, but police advised people not to go to the area.
The Met tweeted: "We would discourage anyone still thinking of attending the illegal rave in Whitgift Street from coming to the area due to ongoing police op."
Residents in Lambeth told of their frustration at the disruption overnight into Sunday.
Rhodri wrote on Twitter: "They're now gathering on my street. There are families here with young kids that don't deserve this disruption."
Christopher Kilby said: "I won't be getting much sleep tonight. Chants of 'we want scum' still ringing loudly as protesters continue to confront police."
Two hours later he added: "I'd really like to go to sleep now. Could the rioters please just give up and go home?!"
Police said criminal damage had been caused to private vehicles and property in the area.
In a statement the Met said: "Shortly before 06:00hrs this morning, Sunday 1 November officers entered the venue stopping the event with powers under the Criminal Justice and Public Order Act.
"Persons present in the venue were removed. There were some further arrests."
Police said the "post incident investigation" has begun and appealed for witnesses to the disorder or anyone with information to come forward.