BERKELEY (CBS SF) — Despite heated opposition from homeless advocates, the Berkeley city council voted Tuesday night in favor of a strict set of laws that will ban people from taking up more than 2 square feet of space on sidewalks.

The laws ban people from sleeping in planter beds, leaving any personal belongings in trees, and also tighten existing bans on public urination and defecation.

READ MORE: Magnitude 2.8 Earthquake Rattles East Bay Near Hercules

ALSO READ: Facebook Takes Down Page Touting ‘White Student Union’ At UC Berkeley

Vice Mayor Linda Maio says the rules are meant to help the homeless.

READ MORE: New Facebook Whistleblower Says Executives Shrugged as Algorithm Stoked Hate, Misinformation

“This is designed to create welcoming sidewalks for everyone,” Maio said.

ALSO READ: Google Accused Of Invading Students’ Privacy In Complaint To Feds

The city plans to build new public bathrooms downtown, and create storage units for personal belongings.

MORE NEWS: San Jose Woman Killed By Stray Bullet In Mexican Drug Gang Shootout

Six council members voted in favor of the ordinances, while three others did not vote, BerkeleySide tweeted late Tuesday night.