Between 1807-1825, most of Latin America gained independence from Spain and Portugal through nationalist revolts led by Creoles. The Haitian Revolution of 1804 established the first independent state in Latin America after slaves overthrew French control of Saint-Domingue. Miguel Hidalgo led an unsuccessful revolt in Mexico in 1810 seeking independence. José de San Martín and Simón Bolívar led successful revolutions across South America to liberate the continent from Spanish rule. This established five new republics in Central America and helped other South American nations achieve independence from Spain.