Rioters wreaked havoc Wednesday night on the University of California, Berkeley, campus over a planned speech by Breitbart News editor Milo Yiannopoulos, destroying a Starbucks, breaking windows and setting fires.

The unrest prompted the university to cancel the appearance by the far-right commentator in order to ensure the safety of students and the speaker, officials said.

The demonstrators worked their way along a commercial strip adjoinging the campus.

UC Berkeley spokesman Dan Mogulos said there were no immediate reports of arrests.

Yiannopoulos, 32, a right-wing provocateur, is a strong supporter of President Trump and a self-proclaimed internet troll who has been called racist and a white supremacist and has declared that “feminism is cancer.”

He was banned from Twitter after leading a harassment campaign against “Saturday Night Live” comedian Leslie Jones.

Hours before the planned speech, hundreds of peaceful demonstrators at the event were carrying signs reading, “Hate speech is not free speech.”

But the situation turned violent when a smaller group of protesters wearing masks and black hooded sweatshirts began shooting off fireworks and hurling metal barricades into storefront windows.

They then started a large bonfire outside the auditorium where Yiannopoulos was to speak and busted up the Starbucks.

Yiannopoulos’ visit to Berkeley was sponsored by the campus Republican Club. The university stressed it had not invited him and does not endorse his ideas but is committed to free speech.

With Associated Press