SAN FRANCISCO -- The city of San Francisco cleaned up Monday after a rowdy World Series celebration turned violent in some neighbourhoods and police arrested three dozen people.

The majority of arrests occurred in the Mission District, and included two people on gun charges, police Sgt. Michael Andraychak said.

"There were celebrations all over the city, and they were all peaceful and upbeat," Andraychak said. "Unfortunately, as the night progressed, this other element emerged and were intent on doing violence."

Bonfires of trash were lit in several intersections around the city, and a public transit bus was torched. Windows of several businesses and vehicles were broken, including a news van.

Firefighters needed a police escort to douse a bonfire near the Giants' ball park. They also fought fires fueled by couches, news racks and other debris throughout the city.

Police said a damage report was not yet available.

Mayor Edwin Lee announced a ticker-tape parade would be held at 11 a.m. Wednesday from Market Street to Civic Center Plaza.

A parade after the Giants won the series in 2010 drew hundreds of thousands of fans.

After the game ended Sunday, fans across the city left their televisions and rushed outside, greeting diners, bar patrons and other merrymakers Sunday night after the Giants defeated the Detroit Tigers 4-3 to sweep the Series for their second title in three years.

In the city's Polk Gulch neighbourhood, hundreds of fans sprayed champagne, set of off firecrackers and blocked traffic for at least two hours after the game.

Several blocks away, police clad in riot gear looked on as revelers danced around Civic Center plaza where they had watched the game on a Jumbotron.

The thousands of fans assembled at the site exploded in a roar with the final out.

Anthony Yos, 10, hugged his brother Luciano Yos, 15, and the two danced in an embrace with their parents.

"This is the greatest thing," Anthony said with a smile that could go no wider. "The Giants are my favourite team."

Someone in the crowd launched fireworks a few minutes after the game. Strangers hugged strangers, and wine bottles and marijuana cigarettes were shared freely despite a heavy police presence.

"This is San Francisco, "said Laura Chu. "We know how to party."

Sara Vivas brought her 6-year-old daughter Briana Cepeda from Oakland to view the game and join the celebration. They were both clad head-to-toe in Giants garb.

"This is something she will remember forever," Sara said.