Mexican president's US visit canceled after phone call with Trump

The disagreement is the latest blow to relations between the two neighbors as the administration continues to swing between cooperation and fiery rhetoric - and the allies remain at loggerheads over a border wall.

The plans for Peña Nieto to visit were in an early planning phase, according to both officials, with one saying the call was supposed to lay the groundwork for a formal invitation for a visit during which the two leaders would sign a series of agreements on "broad-based" issues like security and energy.

But according to one official, Trump went off script and brought up the wall. Peña Nieto said Mexico would not support the wall, while Trump reiterated his campaign position that it would. Both sides then concluded together that now was not the right time to move forward with a visit, according to the other official.

"The two leaders mutually agree now was not the immediate right time for a visit, but that they would not their teams continue to talk and work together," the official told ABC News.

The call was not nasty, but stern or firm, according to the officials.

Mexico has had no comment on the testy call or the cancelled visit/ Last week, it issued a statement saying the two men discussed mutual issues of security, trade and migration.

A calling card of his campaign, Trump is moving ahead with plans for a border wall, although many of the details, such as how long or in which parts, are still unknown. U.S. Customs and Border Protection began testing wall prototypes in December, with six companies chosen to build eight sample walls — four made of concrete and four of other materials.

Mexico has denied repeatedly that it would pay for the wall, and Peña Nieto opposes its construction.

"We enjoy a great relationship with Mexico, and the two administrations have been working for a year to deepen our cooperation across a range of issues, including security, immigration, trade and economics," NSC spokesperson Michael Anton told ABC News.

But while Tillerson was in Mexico at the start of February touting the partnership with Mexico, Trump was back at the White House, blasting the country for pouring drugs into the U.S. and threatening to cut off aid.

"These countries are not our friends," Trump said during a roundtable with Customs and Border Protection officials. "We send them massive aid, and they're pouring drugs into our country, and they're laughing at us."