The Trump administration is exploring how to cut federal funding from so-called “sanctuary cities” — including New York — that offer safe harbors for illegal immigrants, the White House said Wednesday.

“We’re going to strip federal grant money from the sanctuary states and cities that harbor illegal immigrants,” spokesman Sean Spicer told reporters.

“The American people are no longer going to have to be forced to subsidize this disregard for our laws.”

The comments came as President Trump signed an executive order authorizing construction of a border wall with Mexico.

The specifics of how the administration would withhold federal money from sanctuary cities — which could cost such cities millions — were unclear, with Spicer saying they would be worked out with Congress.

Meanwhile, Mexican media reported that President Enrique Peña Nieto, who was supposed to visit the White House on Jan. 31, might cancel the sitdown if Trump ordered the wall built.

Mexicans have demanded that their government cancel the meetings to send a message to the Trump administration that it will not cave in to bullying.