Latin American nations gained independence from Spain in the early 1800s through revolutionary movements led by influential figures like Simón Bolívar and José de San Martín. Discontent with colonial rule had been growing due to resentment of social hierarchies and the influence of Enlightenment ideas. The first successful revolution was in Haiti, led by Toussaint L'Ouverture, who established the first independent black republic. Mexico gained independence after leaders like Miguel Hidalgo and Agustín de Iturbide led revolts against Spanish rule. South American nations established independence under leaders who fought to liberate their nations from Spain and unite them, though unification efforts like Gran Colombia ultimately failed. New nations faced ongoing challenges in building stable