California’s governor unveiled a plan Thursday to offer more services to homeless people with severe mental health and addiction disorders even if that means forcing some into care, a move that many advocates of the homeless oppose as a violation of civil rights.

The proposal by Gov. Gavin Newsom, a Democrat, would require all counties to set up a mental health branch in civil court and provide comprehensive and community-based treatment to those suffering from debilitating psychosis.

People would be obligated to accept the care or risk criminal charges, if those are pending, and if not, they would be subject to processes already in place, such as involuntary psychiatric holds or court conservatorships.

“One of the most heartbreaking, heart-wrenching and yet curable challenges that we face … is how do we serve the needs of individuals who are the sickest of the sick?” said Dr. Mark Ghaly, secretary of the California Health and Human Services Agency, at a news briefing in advance of a press conference by Newsom.

He said he expects the program called “Care Court” to apply to 7,000 to 12,000 people in California, although not all have to be homeless. Family members and outreach workers could recommend a person for a court-mandated program, which the governor’s office plans to boost with more money for psychologists, treatment beds and services.

“The money is there. The investment is there. The beds are coming, the units are coming online,” said Jason Elliott, senior counselor to Newsom.

Currently, Laura’s Law in California allows for court-ordered outpatient treatment in certain conditions, but officials said it’s only been used for about 200 people out of a state of nearly 40 million. Counties can opt of the program.

Some advocates for the homeless have objected to forced care, but Newsom told the San Francisco Chronicle it is past time to talk about civil rights when people who are clearly in distress are ranting in streets and frightening or even attacking others.

“There’s no compassion with people with their clothes off defecating and urinating in the middle of the streets, screaming and talking to themselves,” said Newsom, a former mayor of San Francisco.

Ghaly said Thursday that the plan is just the “beginning of a conversation” and that implementation would require legislative approval.

Newsom has made homelessness and housing a focus of his administration. Last year, he proposed and the Legislature approved $12 billion for new housing and treatment beds for the homeless and this year he has proposed an additional $2 billion, primarily to shelter people suffering from psychosis and behavioral health disorders.

‘They just want to feel respected’: Long Beach conducts annual homeless count