Spanish American wars of independence important change in strategy after three United Provinces campaigns had been defeated in Upper Peru. San Martín's army became the nucleus of the Army of the Andes, which received crucial political and material support in 1816 when Juan Martín de Pueyrredón became Supreme Director of the United Provinces. In January 1817, San Martín was finally ready to advance against the royalists in Chile. Ignoring an injunction from the congress of the Río de la Plata not to move against Chile, San Martín together with General Bernardo O'Higgins Riquelme, later Supreme Director of Chile, led the Army over the Andes in
Republic of Texas the Isthmus of Panama (including Texas) sought independence in the Mexican War of Independence. Many Americans fought on the side of Mexico against Spain in filibustering expeditions. One of these, the Gutiérrez–Magee Expedition (also known as the Republican Army of the North) consisted of a group of about 130 Americans under the leadership of Bernardo Gutiérrez de Lara. Gutierrez de Lara initiated Mexico's secession from Spain with efforts contributed by Magee. Bolstered by new recruits, and led by Samuel Kemper (who succeeded Magee after his death in battle in 1813), the expedition gained a series of victories against soldiers led