California Gov. Gavin Newsom said President Donald Trump is “pulling a military dragnet” across Los Angeles during a brief public address on Tuesday.

The Democratic governor's remarks come after Trump ordered the deployment of nearly 5,000 troops, including National Guard and Marines, to the nation’s second-largest city.

They were deployed to protect federal buildings but are now also protecting immigration agents as they carry out arrests.

Photos posted Tuesday by U.S. Immigration and Customs Enforcement show National Guard troops standing guard around officers as they made arrests.

ICE said in a statement that the troops were providing security at federal facilities and protecting federal officers “who are out on daily enforcement operations.”

The change moves troops closer to engaging in law enforcement actions like deportations as Trump has promised as part of the administration’s immigration crackdown.

The Guard has the authority to temporarily detain people who attack officers but any arrests ultimately would be made by law enforcement.

Newsom said Trump’s immigration crackdown has gone well beyond arresting criminals and that “dish washers, gardeners, day laborers and seamstresses" are among those being detained.

He said Trump’s decision to deploy the California National Guard without his support should be a warning to other states.

“California may be first — but it clearly won’t end here,” Newsom said.

Newsom earlier Tuesday asked a federal court to block the Trump administration from using the National Guard and Marines to assist with immigration raids in Los Angeles, saying it would only heighten tensions and promote civil unrest.

He filed the emergency request after Trump ordered the deployment to LA of roughly 4,000 National Guard troops and 700 Marines to the city.

The federal government said Newsom was seeking an unprecedented and dangerous order that would interfere with its ability to carry out enforcement operations. A judge set a hearing for Thursday.

The Marines and another 2,000 National Guard troops were sent to LA on Monday, adding to a military presence that local officials and Newsom do not want and that the police chief says makes it harder to handle the protests safely.