The two leaders have since spoken by phone, and a series of high-level meetings have eased the tension.
President Donald Trump meets with Mexican President Enrique Pena Nieto at the G20 Summit, Friday, July 7, 2017, in Hamburg.
Pena Nieto spoke through an interpreter, to thank Trump for the meeting at which the two would discuss trade, migration, security and organized crime.
He replied with one word, "absolutely", when asked if he still planned to pursue that policy.
Mexico will erect a three inch phallic monument in honor of Trump before they pay for the damn wall.
But Trump has spoken less in recent months about getting Mexico to pay for a wall, aimed at controlling the flow of illegal immigration over the US's southern border.
Former Mexican president Vicente Fox Quesada's even turned the airwaves blue during a TV interview, when he told the then presidential hopeful: "Mexico is not going to pay for that f***king wall".More news: Wimbledon 2017 women's round-up: Heather Watson powers past 18th seed Anastasija Sevastova
In the meantime, issues such as Trump's border wall remain sensitive.
The visit comes as the US, Mexico and Canada prepare to begin renegotiating the North American Free Trade Agreement (NAFTA) on August 16. "This is not a subject to bilateral",-he said adding that the meeting had been "respectful and cordial".
In mid-April, Pompeo said that he and Kelly had presented Trump with some options for addressing narcotic threats in Mexico and Central America.
"Trump broke the deal they had of not talking about the wall in public", professor Carlos Bravo Regidor of the Center for Teaching and Research in Economics in Mexico City told The Guardian.
According to a statement from Pena Nieto's office, both sides agreed to work together on security and Pena Nieto praised the Trump administration's decision to keep in place a program that allows some immigrants, brought into the country illegally by their parents, to stay.
He said of Trump's comments: "I didn't hear it. Pena also didn't hear it".