Declaring that “Guatemala has not been good,” President Trump threatened on Tuesday to retaliate against the country for not signing an immigration deal. He said his administration was considering imposing tariffs on Guatemalan exports or taxing money sent home by migrants.

The deal, called a “safe third country” agreement, would have required migrants who pass through Guatemala to seek asylum there, instead of continuing to the United States.

“Guatemala, which has been forming Caravans and sending large numbers of people, some with criminal records, to the United States, has decided to break the deal they had with us on signing a necessary Safe Third Agreement,” Mr. Trump wrote on Twitter.

“Now we are looking at the BAN, Tariffs, Remittance Fees, or all of the above,” the president wrote.