Between 1807-1825, most of Latin America gained independence from Spain and Portugal through nationalist revolts led by Creoles influenced by North American and French revolutions. In Haiti, slaves revolted in 1804 and established the first independent Latin American state. In Mexico, Miguel Hidalgo led an uprising that ultimately failed but helped spark Mexico's independence. Jose de San Martin and Simon Bolivar led revolutions across South America that liberated Central and South America from Spain. The Monroe Doctrine declared that European powers could no longer colonize the Americas.