President Trump extended an olive branch to Mexico’s new leader, Andrés Manuel López Obrador, in a congratulatory tweet on Sunday night.

“Congratulations to Andres Manuel Lopez Obrador on becoming the next President of Mexico. I look very much forward to working with him,” Trump said. “There is much to be done that will benefit both the United States and Mexico!”

López Obrador, 64, became Mexico’s first leftist president in decades on Sunday following a landslide victory over ruling PRI party candidate Jose Antonio Meade.

The left-wing populist embraced a “Mexico first” stance against President Trump during the campaign — and even went so far as to call him a racist “neo-facist” — so the Twitter praise comes as a surprise.

“Seriously?” tweeted one person, in response to Trump’s tweet.

“Evidently you have not heard a word he said about you in the last year,” another said.

López Obrador has blasted Trump’s proposed border wall in the past and repeatedly promised that if it does get built, Mexico won’t be paying for it. His critics have dubbed him the next Hugo Chávez, who served as president of Venezuela from 1999 until his death in 2013 — and was widely viewed as a dictator.

“Good luck Mr President! Obrador is ‘Hugo Chavez lite,'” wrote one Twitter user.

“He’s going to make your life much more difficult, bro,” another said.