The Annapolis City Council passed a bill that will protect undocumented immigrants.
The bill will prevent city officials from inquiring into a person's immigration status unless legally required.
Officials will also be unable to deny city services and benefits to those suspected of having undocumented status.
It passed 6-2-1 with Annapolis Mayor Mike Pentelides and Alderman Fred Paone voting against the bill, and Alderwoman Rhonda Pindell Charles abstaining.
Annapolis joins several other so-called "sanctuary cities" in Maryland.
The Howard County Council recently voted in favor of a similar bill, but County Executive Allan Kittleman has said he will veto the bill.
President Trump has threatened to limit federal funding to sanctuary cities.