Canada and Mexico have agreed to deepen ties, vowing closer cooperation on trade and security, as both countries grapple with rising economic pressure from the US.

Following a bilateral meeting in Mexico City, Canada's Prime Minister Mark Carney and Mexican President Claudia Sheinbaum also expressed their commitment to a shared partnership with the US.

"We compliment the United States, we make them stronger, and we are all stronger together," Carney told reporters.

Both Canada and Mexico have been hit by US tariffs - 50% on Canadian steel, and 25% on some Mexican pharmaceuticals. President Trump has also levied a 25% "fentanyl tariff" on Mexico, citing border security.

This is Carney's first official visit to Mexico as prime minister, and it marks an effort to reset relations after tensions flared last year when Canadian officials were accused of seeking a separate trade deal with the US during tariff talks.