Mexican President Andres Manuel Lopez Obrador held talks with Donald Trump at the White House on Wednesday under the shadow of the coronavirus pandemic and the US leader's past disparaging remarks about America's southern neighbor.

Speaking after an Oval Office meeting, Trump hailed the US-Mexico relationship as "outstanding," and Lopez Obrador -- a left-wing populist -- adopted a conciliatory tone.

Mexican President Andres Manuel Lopez Obrador wore a face mask on the plane as he traveled to Washington to meet US President Donald Trump
Mexican President Andres Manuel Lopez Obrador wore a face mask on the plane as he traveled to Washington to meet US President Donald Trump AGENCIA REFORMA / -

"The relationship between the United States and Mexico has never been closer than it is right now," said Trump, who ran for president on a pledge to build a wall along the border with Mexico to keep out "rapists" and "criminals."

"Each of us was elected on the pledge to fight corruption, return power to the people and put the interests of our countries first," Trump told Lopez Obrador. "I do that and you do that."

Lopez Obrador thanked Trump for his "understanding" and told his US counterpart: "You have not tried to treat us as a colony.

Commuters line up to cross the Mexican border into the United States at Tijuana as leaders of the two nations prepare to meet in Washington on a new trade accord
Commuters line up to cross the Mexican border into the United States at Tijuana as leaders of the two nations prepare to meet in Washington on a new trade accord AFP / Guillermo Arias

"On the contrary, you have honored our condition as an independent nation. That's why I'm here: to express to the people of the United States that their president has behaved with us with kindness and respect."

The Mexican leader also thanked Trump for helping on trade and with medical equipment to treat coronavirus patients.

A Mexican flag and a banner reading 'Trump, let Mexicans enter the US to work' are seen during a demonstration by members of Border Angels and Alianza Migrante in the Mexican border city of Tijuana in February 2020
A Mexican flag and a banner reading 'Trump, let Mexicans enter the US to work' are seen during a demonstration by members of Border Angels and Alianza Migrante in the Mexican border city of Tijuana in February 2020 AFP / Guillermo Arias

Officially, the first face-to-face meeting between Trump and Lopez Obrador was to celebrate the launch of the new US-Mexico-Canada Agreement trade deal, a modified successor to the North American Free Trade Agreement, which Trump had branded a killer of working-class US jobs.

But their bonhomie did not convince Trump's Democratic presidential rival Joe Biden.

"Trump launched his 2016 campaign by calling Mexicans rapists. He's spread racism against our Latino community ever since," Biden tweeted.

US President Donald Trump and Mexican President Andres Manuel Lopez Obrador sign a joint declaration in the Rose Garden of the White House
US President Donald Trump and Mexican President Andres Manuel Lopez Obrador sign a joint declaration in the Rose Garden of the White House AFP / JIM WATSON

He called for a return of "dignity and humanity" to the US immigration system.

SOUNDBITEMexico's President, Andres Manuel Lopez Obrador, speaking at a Rose Garden event at the White House, thanks US President Donald Trump for not trying to treat Mexico "as a colony," instead honroing its status as an independent nation.
SOUNDBITEMexico's President, Andres Manuel Lopez Obrador, speaking at a Rose Garden event at the White House, thanks US President Donald Trump for not trying to treat Mexico "as a colony," instead honroing its status as an independent nation. DC POOL /

Lopez Obrador has shown a pragmatic streak in managing relations with Trump, mindful that even small actions by the giant neighbor can have enormous consequences for his country, especially on the economic front.

Despite coming from opposite sides of the political spectrum, Trump and Lopez Obrador have also been cooperating in the US leader's efforts to stop Central Americans seeking asylum in the United States as they flee violence.

Lopez Obrador is banking on the new trade agreement to prop up the Mexican economy, which is expected to contract 8.8 percent this year due to COVID-19. The virus has left more than 30,000 dead in Mexico.

Canadian Prime Minister Justin Trudeau declined to come to Washington to make it a three-way summit.

But there was a buzz of anticipation for Lopez Obrador as around 100 Mexicans gathered outside the White House to cheer his arrival.

Crediting him with tackling corruption, Maria Varela, 40, said she understood he had come for the sake of trade.

But some Latino lawmakers have been aghast at Lopez Obrador's willingness to meet Trump.

Representative Chuy Garcia, a Democrat from Chicago who was born in Mexico, said Trump was seeking a photo-op with Lopez Obrador in a bid to paper over "four years of insults, attacks and damaging policies" toward Latinos as he seeks a new term in the November election.

Lopez Obrador's predecessor, Enrique Pena Nieto, similarly stunned many observers when he welcomed candidate Trump in 2016 for a brief visit, letting the reality TV star show a statesman-like side before the cameras.

Despite their differences in tastes and ideology, Trump and Lopez Obrador share common traits.

Both have scorned traditional media yet dominated the headlines -- Trump through Twitter and Lopez Obrador via press conferences every morning.

AMLO, as Lopez Obrador is known, had vowed on taking office two years ago never to travel abroad, but he flew to Washington -- commercially in economy class with his face covered in compliance with airline rules.