San Francisco is suing the Trump administration over an executive order requiring the federal government to withhold money from so-called sanctuary cities that protect undocumented immigrants from federal prosecution.

The lawsuit, filed in U.S. District Court in the Northern District of California on Tuesday, alleges that Trump’s order violates the Tenth Amendment, which states that powers not explicitly given to the federal government are reserved for the states.

City of San Francisco has just sued @realDonaldTrump @POTUS in federal court over sanctuary city issue. https://t.co/0sHVsKntYX — Cyrus Farivar (@cfarivar) January 31, 2017

The executive action, the lawsuit argues, “is a severe invasion of San Francisco’s sovereignty.”

ADVERTISEMENT

“Like so many other cities, San Francisco is a city of immigrants, many of whom are undocumented, who come here to live, work and raise families,” the lawsuit says.

“San Francisco is safer when all people, including undocumented immigrants, feel safe reporting crimes. San Francisco is healthier when all residents, including undocumented immigrants, access public health programs. And San Francisco is economically and socially stronger when all children, including undocumented immigrants, attend school.”

The suit also accuses the order of trying to turn local law enforcement officials into federal immigration officers, saying such a move “breeds distrust of local government and officials who have no power to change federal laws.”

The lawsuit marks the first court challenge to the order by one of the affected cities since the president signed it last week.

Miami-Dade County Mayor Carlos Gimenéz (R) ended the county’s sanctuary status last week, shortly after Trump issued the order.

Sanctuary policies limit how much local enforcement can cooperate with federal immigration enforcement. California is one of four states that have a statewide policy limiting such cooperation, along with Vermont, Connecticut and Rhode Island.