Homeless people and their advocates sued the city of San Francisco on Tuesday, demanding that it stop harassing and destroying the belongings of people living on the streets with nowhere to go, and with the goal of forcing the city to spend billions of dollars on affordable homes that will keep residents housed.

The Lawyers' Committee for Civil Rights of the San Francisco Bay Area and others filed the lawsuit in federal court on behalf of the Coalition on Homelessness and seven individuals who are homeless or at risk of becoming homeless. Defendants include the city, several city departments and Mayor London Breed.

The complaint states that San Francisco "presents the image of a caring municipality" with a plan to address homelessness, but decades of inaction on affordable housing has left thousands forced to use tents and vehicles as shelter. An annual homelessness survey found 7,754 homeless people in 2022 with nearly 60% living unsheltered.

Not only has the city failed to construct affordable housing, according to the complaint, the city uses heavy-handed tactics to get homeless people to move, threatening to arrest or actually arresting people, and taking people's belongings in early morning encampment sweeps in which shelter is not offered, as required by law.

SAN FRANCISCO BUSINESSES THREATEN TAX STRIKE IF HOMELESS PEOPLE ARE NOT REMOVED

Homeless people sleeping on the sidewalk in a pile of discarded clothes and needles

FILE - People sleep near discarded clothing and used needles on a street in the Tenderloin neighborhood in San Francisco, on July 25, 2019. Advocates for homeless people sued the city of San Francisco, Tuesday, Sept. 27, 2022, demanding that it stop harassing and destroying belongings of people living on the streets and commit to spending $4 billion for affordable housing. (AP Photo/Janie Har, File) (AP Photo/Janie Har)

In addition to stopping illegal practices, "we need to change the conversation around what is causing homelessness here and get to proven solutions," said Zal K. Shroff, senior attorney with the lawyers’ committee.

San Francisco is among many West coast cities where street homelessness has come increasingly under fire, from politicians and housed residents. California Gov. Gavin Newsom, a Democrat and former mayor of San Francisco, has embraced clearing tent encampments, saying it is neither compassionate nor safe to allow people to live outdoors.

But the U.S. Court of Appeals for the Ninth Circuit ruled in 2018 that it's unconstitutional to cite or arrest people for sleeping in public when there is no shelter available.

LIFELONG SAN FRANCISCO RESIDENT LEAVES FOR SUBURBS AFTER BUSINESS IS ROBBED: 'THEIR POLICIES JUST DON'T WORK'

Homeless man standing next to tents on the street

FILE - A man stands near tents on a sidewalk in San Francisco, Nov. 21, 2020. Advocates for homeless people sued the city of San Francisco, Tuesday, Sept. 27, 2022, demanding that it stop harassing and destroying belongings of people living on the streets and commit to spending $4 billion for affordable housing. (AP Photo/Jeff Chiu, File) (AP Photo/Jeff Chiu)

In statements, both the mayor's office and the city attorney's office declined comment but said San Francisco is focused on expanding temporary shelter and providing more permanent housing options. Breed's office said the city has added nearly 3,000 permanent supportive housing units since 2020.

"Once we are served with the lawsuit, we will review the complaint and respond in court," said Jen Kwart, spokesperson for the office of City Attorney David Chiu.

Shroff acknowledged the court can’t order San Francisco to build affordable housing, but the group hopes the lawsuit will push city leaders in that direction.

CALIFORNIA SCHOOL DISTRICT ENCOURAGES PARENTS TO RENT ROOMS TO TEACHERS PRICED OUT BY RISING RENT COSTS

San Francisco homeless seen doing drugs on street

SAN FRANCISCO, CA - FEBRUARY 24: Homeless people consume illegal drugs in an encampment along Willow St. in the Tenderloin district of downtown on Thursday, Feb. 24, 2022 in San Francisco, CA. London Breed, mayor of San Francisco, is the 45th mayor of the City and County of San Francisco. She was supervisor for District 5 and was president of the Board of Supervisors from 2015 to 2018.  (Gary Coronado / Los Angeles Times via Getty Images)

The lawsuit asks the court to order the city to stop punishing homeless people for sleeping and living on public property until it has sufficient shelter to offer. It also asks the court to stop the city from seizing property and to appoint a monitor to make sure the city follows through.

The seven named plaintiffs include David Martinez, a Latino man who sleeps in a cardboard box because city workers keep confiscating his tent and other belongings, according to the complaint.

Two of the plaintiffs are Black men unable to afford housing in the city where they were born and raised. Another is a double amputee whose prosthetics were taken by city workers in June.

LOS ANGELES OFFICIALS CHALLENGE ACCURACY OF LATEST HOMELESSNESS COUNT, DEMAND AUDIT: REPORTS

San Francisco homeless man sleeps on sidewalk

A person experiencing homelessness sleeps on the sidewalk in the Tenderloin district of San Francisco, California, U.S., on Thursday, April, 14, 2022. San Francisco was home to more than 9,800 unhoused people as of the last released count in 2019, up more than 30% from two years earlier, according to a city point-in-time estimate that is likely a significant undercount.  (David Paul Morris/Bloomberg via Getty Images)

Toro Castaño said in a legal declaration that in August 2020 he packed his belongings as ordered but city workers tossed all his stuff into a garbage truck, including his mother’s wedding kimono and a MacBook Pro laptop. They offered him a bed in a homeless shelter, which he declined for fear of catching the coronavirus.

"I do not think it was fair to force me to make that difficult healthcare choice under the threat of citation," said Castaño, who is also Latino, in his declaration.

The city does not give 72 hours notice in advance of clearing an area or bag and tag property for homeless people to collect later, in violation of its own policies, according to the complaint. Homeless outreach workers do not know until hours after people have been forced out what kind of shelter, if any, is available that day.

CLICK HERE TO GET THE FOX NEWS APP 

"No one is saying the city should not remove trash, but when we’re seeing MacBook Pros, that’s just straight up targeting of unhoused people," Shroff said.

San Francisco has about 3,500 shelter beds, the mayor's office said.

The lawsuit estimates San Francisco would need to build nearly 6,700 new affordable units, which they estimate to cost $4.8 billion, to house every person currently unhoused in San Francisco.