Andrés Manuel López Obrador was elected as Mexico's president on Sunday and has promised to tackle poverty and corruption.

The leftist politician has been a vocal critic of US President Donald Trump and his immigration policies.

He compared comments made by Trump about Mexicans to "the way Hitler and the Nazis referred to the Jews."

He even wrote a book called "Listen up, Trump."



Mexico's next president Andrés Manuel López Obrador is no fan of Donald Trump.

López Obrador was heavily critical of Trump throughout his election campaign, attacking the US president's border wall policy and comparing his comments about Mexicans to the way Nazis spoke about Jews.

The former mayor of Mexico City, who swept to victory with more than 53% of the vote on Sunday, even published a book that criticizes America's influence in Mexico.

The book is titled "Oye, Trump," which translates to "Listen up, Trump," and includes snippets of his speeches. In one, he said: "Trump and his advisers speak of the Mexicans the way Hitler and the Nazis referred to the Jews, just before undertaking the infamous persecution and the abominable extermination."

López Obrador has repeatedly attacked Trump's desire to build a border wall between the US and Mexico. In a speech in Los Angeles last year, he said that building a wall "goes against humanity, it goes against intelligence, and against history."

He also previously called Trump "erratic and arrogant" in an interview with NPR. "We won't allow his wall or mistreatment of our fellow migrants in the US," he said.

The 64-year-old has pledged to tackle violence and poverty in Mexico — and to root out corruption. These are issues that Trump has repeatedly used to justify a strict immigration policy and the construction of a border wall, which promised during his 2016 election campaign.

Trump congratulated Lopez Obrador on Twitter on Monday, referencing work that the two countries will do together.

In his speech to supporters on Monday, López Obrador said Mexico would forge a new relationship with the US that is "rooted in mutual respect and in defense of our migrant countrymen who work and live honestly in that country."

Lopez Obrador, often referred to by his initials "AMLO," will formally take office on December 1.