Mayor Bill de Blasio’s mixed message of welcoming illegal immigrants — while vowing to sue if President Trump ships them to New York — is sowing “fear,” an advocacy group said Wednesday.

“I think the messages can be very confusing, and it’s creating a lot of fear as well among immigrants about whether you know what’s the real message of Mayor de Blasio,” said Ligia Guallpa, co-executive director of the Brooklyn-based Worker’s Justice Project.

“And the current reality, [for] me as part of an advocacy group, is Mayor de Blasio has created an environment of fear already in New York City.”

De Blasio has breathlessly talked the talk that New York would also keep a light on for illegal immigrants, but stopped short of walking the walk when Trump floated the idea of foisting asylum seekers on sanctuary cities.

While mayors of other sanctuary cities, including Philadelphia, Chicago and upstate Rochester responded to Trump’s threat with open arms for migrants, de Blasio vowed to fight such an effort.

The apparent disparity between words and deeds has left some immigrants questioning whether de Blasio really has their back, Guallpa said.

“The reality of whether New York is really a sanctuary city is a fake idea [in] that it’s not real for immigrants,” said Guallpa.

The mayor’s legal posturing also left some in the City Council scratching their heads.

“I’m just a little confused why that was his initial reaction, especially when we are a sanctuary city,” said Councilman Rafael Espinal (D-Brooklyn).

City Hall insisted Wednesday there was no disconnect between de Blasio’s words and actions, claiming the threat of legal action was intended to call the president’s bluff.

“New York City always has and always will welcome immigrants, but we won’t stand by while President Trump plays games with people’s lives,” spokeswoman Freddi Goldstein said.