President Donald Trump, who has denigrated Mexican migrants and threatened the US ally with crippling tariffs, welcomed President Andres Manuel Lopez Obrador to the White House, called him a cherished partner and claimed the countries’ economic and security ties were reaching new heights.

Mr Trump’s warm words were in stark contrast to the days when he called Mexicans “rapists” and railed against migrants entering the United States illegally.

Mr Lopez Obrador had cordial words for Mr Trump, too, saying that while they have disagreed, it was better to find common ground and avoid slinging insults.

The meeting was billed as a celebration of economic ties and the new US-Mexico-Canada trade agreement, but critics in Mexico worried Mr Lopez Obrador was being used as a political pawn to bolster the Trump campaign and his “America first”, anti-illegal migration agenda.

Despite the verbal backslapping in the Rose Garden, thorny issues, from immigration to investment, remain.

Mr Trump has eased up on his harsh words since Mr Lopez Obrador took office a year and a half ago.

Mr Lopez Obrador signalled he wanted to put the insults in the past.

“As in the best times of our political relations, during my term as president of Mexico, instead of insults toward me and more importantly against my country, we have received from you understanding and respect,” Mr Lopez Obrador said.

Their relationship is an odd bromance: Mr Lopez Obrador is a veteran leftist and Mr Trump tacks right.

“Some thought that our ideological differences would have led us inevitably to confrontation,” Mr Lopez Obrador said.

“Fortunately, this bad omen didn’t materialise and I consider that in the future there will be no need to break our good political relations, nor the friendship between our governments.”

The two signed a declaration highlighting US-Mexico relations and the USMCA.

Canadian prime minister Justin Trudeau decided not to come to Washington to celebrate the agreement, citing scheduling conflicts.

Mr Trump and Mr Lopez Obrador also pledged to cooperate in responding to the coronavirus, which has rocked both nations.

United States Mexico Trump
President Donald Trump listens as Mexican President Andres Manuel Lopez Obrador claps (Evan Vucci/AP)

Since March 2020, movement across the border has been restricted to essential travel while allowing the flow of goods and services.

Last year, Mexico became the largest goods trading partner of the United States.

Mr Lopez Obrador arrived at the White House after morning stops at the Lincoln Memorial and a statue of Benito Juarez, a former Mexican president and national hero.

Mr Trump and a military honour guard greeted him at the White House.

The two posed for pictures and Mr Trump flashed a thumb’s up.

They also were to have dinner at the White House with about 20 US and Mexican business leaders, including Carlos Slim, one of the richest men in the world.

With the US looking to reduce its dependence on China for parts and supplies, Mexico is well-positioned to step into the void, though US businesses have viewed some recent actions taken by the Mexican government as harmful to US investors and say they undermine the framework of the USMCA.

“If there is not a better investment climate for both foreign and domestic private investment, it will be very difficult to use the opportunity of USMCA and the drift between China and the United States to our advantage,” Geronimo Gutierrez, who was Mexico’s ambassador to the US in 2017 and 2018, said during a virtual event hosted by the Wilson Centre.

With no meetings planned with former Vice President Joe Biden, Mr Lopez Obrador seemingly is banking that Mr Trump will win a second term.

The Democratic Party chairman, Tom Perez, recalled Mr Trump’s insults of Mexicans and said the president was now trying to take credit for a trade deal that Democrats in Congress helped make possible.

“Latino communities, immigrants, and the American people deserve a president with the empathy and experience to lead us forward, not a demagogue who cheers on bigotry from the White House,” Mr Perez said, urging voters to elect Mr Biden.

In a letter to Mr Trump last week, a dozen Democratic members of the Congressional Hispanic Caucus denounced the meeting with Mexico’s president as an effort to distract voters from rising cases of coronavirus in the United States and said it was a “blatant attempt” to politicise relations between the allies.

When he arrived at the White House, Mr Lopez Obrador and Mr Trump did not shake hands as would have been customary before the pandemic.

White House spokesman Judd Deere said all members of the Mexican travelling delegation were tested for the virus.

President Donald Trump and Mexican President Andres Manuel Lopez Obrador pose for photos after signing a joint declaration (Evan Vucci/AP)
President Donald Trump and Mexican President Andres Manuel Lopez Obrador pose for photos after signing a joint declaration (Evan Vucci/AP)

The presidents sat at tables positioned many feet apart to sign their joint statement.

Mr Lopez Obrador likes to point out that Mr Trump helped Mexico reach a deal with other oil-producing nations to cut production and aided Mexico in obtaining more ventilators to cope with the coronavirus pandemic.

Both presidents talk about a blossoming friendship that seems to stem from their pursuit of nationalist agendas.

Many Mexicans, however, remain wary of Mr Trump, whose denunciations are intended to rally his most loyal supporters.

Mr Trump has threatened tariffs to strong-arm Mexico into playing an uncomfortable role in US immigration policy and insisted that Mexico will pay for a border wall meant to keep migrants out of the US.

White House press secretary Kayleigh McEnany would not get into detail about what the two presidents said about immigration.

Mexico deployed guards to the border to help stem the tide of illegal immigrants from Central American.