Veteran leftist Andres Manuel Lopez Obrador took office as Mexican president on Saturday, vowing to see off a "rapacious" elite in a country struggling with corruption, chronic poverty and gang violence on the doorstep of the United States.

Backed by a gigantic Mexican flag, the 65-year-old took the oath of office in the lower house of Congress, pledging to bring about a "radical" rebirth of Mexico to overturn what he called a disastrous legacy of decades of "neo-liberal" governments.

"The government will no longer be a committee at the service of a rapacious minority," said the new president, who is often nicknamed AMLO. Nor would the government, he said, be a "simple facilitator of pillaging, as it has been." Lopez Obrador later addressed a massive crowd of supporters in the heart of the capital, promising to put Mexico's sizeable indigenous minority first in his drive to root out inequality.