Mexico is the principle country of Central America and of the most important countries on the continent together with the United States, Canada and Brazil. A former Spanish colony, and at two points in its history governed under a imperial regime, at the beginning of the 1900s it was the setting of one of the first revolutions of the 20th century. Through its history Mexico has had a long and trouble political history. In terms of its economic profile, following a long period of reliance on the petroleum sector, the country developed its industrial sector during the 70s and 80s in anticipation of the conclusion of free trade agreements made with their North American neighbours. It is currently governed by the leftist leader Andres Manuel Lopez Obrador, who took office in 2018.