Mexico's foreign minister said on Saturday that President Andres Manuel Lopez Obrador and U.S. President Donald Trump had agreed to take swift action to stem the flow of illegal weapons from the United States into Mexico.

Lopez Obrador told Trump on a phone call "I want to propose to you that both our countries use technology to close the border, to freeze the traffic of arms that is killing people in Mexico," Foreign Minister Marcelo Ebrard told reporters.

"And Trump responded that he thought it was a good idea that this could be done using technology," Ebrard said, adding that existing technology could be used for this objective.