The two countries struck a deal to avoid a tariff war.
Mexico has agreed to expand a controversial asylum program and deploy security forces to stem the flow of illegal migrants into the USA.
This is after U.S. President Donald Trump threatened to impose 5% import tariffs on all Mexican goods starting on Monday if they didn't do more to tighten its borders.
The announcement comes after three days of talks in Washington, where Mexico agreed to send Central American migrants seeking asylum in the United States to Mexico while they wait for the result of their case.

US, German scientists win Nobel medicine prize for work on light and brain
Nigeria military aircraft crashes with 32 aboard
At least 22 dead after boats collide on Congo river
Spanish PM Sanchez calls snap election for November 29
Hundreds of French schools stay closed ahead of nationwide day of student protests