Brigadier
Vicente Filísola was appointed by Iturbide to command Mexican soldiers to occupy Central America and solidify Mexican control in the region. The active resistance against the annexation was in Costa Rica, El Salvador, and Nicaragua. Republican politicians in El Salvador attempted to usurp authority of Central America from Guatemala City and lead a region-wide resistance to Mexican occupation.
Suppression of Salvadoran resistance , who organized the Salvadoran resistance against Mexican imperial forces Arce and Delgado organized an armed Salvadoran resistance and prepared to engage in battle with Mexican forces. Gaínza, who was serving as the captain general of Central America, committed Guatemalan soldiers to support the Mexicans in March 1822 and placed them under the command of Chilean Sergeant . Salvadoran and Guatemalan forces clashed in the town of El Espinal on 3 March, ending in a Salvadoran victory which forced Abós y Padilla's soldiers to retreat. Gaínza discharged Abós y Padilla and replaced him with Colonel
Manuel Arzú on 19 March. Gaínza also reinforced Arzú with more soldiers. Arzú's army succeeded in occupying San Salvador on 5 April and forced Salvadoran soldiers to abandon the city. Filísola remained in Chiapas as Guatemalan forces occupied San Salvador. After requests from the Guatemalan government for his presence, Filísola arrived at Guatemala City on 12 June 1822. He succeeded Gaínza as the captain general and political chief of Central America on 23 June. On 30 August, Filísola negotiated an armistice with El Salvador which involved the Salvadoran government presenting its rights and complains before the Mexican government in November and ceding seven municipalities to the Guatemalan government. The delegations which negotiated the armistice included
Antonio José Cañas and Juan Francisco Sosa from El Salvador, and Colonel
Felipe Codallos and Lieutenant Colonel José Luis González Ojeda from Guatemala. Filísola advised Iturbide (who had assumed the throne of the Mexican Empire on 19 May 1822) of the armistice. Iturbide rejected the armistice. He believed that the armistice was not enough to ensure the loyalty of El Salvador, and ordered Filísola to again occupy San Salvador and extract a total submission to Mexican authority from its government. On 10 November, the Salvadoran congress declared that it was not able to ratify the armistice, and that El Salvador would defend its rights with force. Before Filísola's forces invaded El Salvador, the Salvadoran
government junta sent an envoy of diplomats to Washington, D.C. to formally request annexation to the United States in an attempt to avoid being completely conquered by Mexican forces. During this time, a rumor spread in El Salvador that the United States had sent an expeditionary force of 1,500 soldiers to enforce the annexation, but no such expedition existed. The envoy arrived in mid-1823, but they were not invited to meet either President
James Monroe or
Secretary of State John Quincy Adams. By then, the Mexican Empire had already collapsed. Following Iturbide's orders, Filísola left Guatemala City on 11 November 1822 with 2,000 troops to again occupy San Salvador. In response to Filísola's invasion, Delgado sent a message to the Mexican government offering full annexation on the sole condition that representatives from El Salvador would be allowed to participate in the formulation of the new Mexican constitution. On 7 December, Filísola occupied the Salvadoran city of
Coatepeque. The Mexican army numbered 5,000 soldiers while Salvadoran forces numbered less than 1,000 and were armed with only machetes and spears. Despite Filísola's numerical advantage, he recognized that attempting to subjugate the rebel army would be difficult as Delgado's symbolic religious support was boosting public morale in San Salvador. On 21 December, Filísola was informed that Arce's soldiers had fortified themselves in the cities of
San Miguel,
San Martín, and
Cojutepeque. Filísola issued an
ultimatum to Arce on 14 January 1823, stating that annexation to the United States was hopeless and that annexation to the Mexican Empire was inevitable. Arce sent Filísola a response the following day rejecting the ultimatum. After the rejection, Mexican forces marched on
Apopa and
Ayutuxtepeque on 7 February 1823, all the while being attacked by Salvadoran soldiers using
guerrilla tactics. The Salvadoran soldiers defending San Salvador fled the city that same day. Two days later, Filísola captured San Salvador and became the province's governor. The Salvadoran soldiers who fled the city retreated to Honduras under the command of
Mariano Prado, where they surrendered to Filísola near the town of
Gualcince on 21 February.
Civil war in Costa Rica The Electoral Junta was established in Costa Rica on 5 January 1822, abolishing the Interim Junta which had governed Costa Rica since December 1821. On 10 January, the Electoral Junta approved Costa Rica's annexation to the Mexican Empire. The Electoral Junta was succeeded by the on 13 January, and its president, (who had been appointed by the junta upon its formation), began preparations for elections which would determine Costa Rica's representatives in the . The election was held on 31 January. Barroeta served as the junta's president until 13 April when he was replaced by
Santiago de Bonilla y Laya-Bolívar. Bonilla was succeeded by
José María de Peralta on 14 July, who himself was succeeded by
José Rafael Gallegos on 16 October. When Iturbide abolished the Constituent Congress on 31 October 1822 without a new constitution being drafted, some Costa Ricans became frustrated with the Mexican emperor. The frustrations divided Costa Rican politicians on whether to remain with Mexico or to secede. On 8 March 1823, the Superior Gubernatorial Junta voted to secede from Mexico, declaring: "The Province of Costa Rica shall be absolutely free and independent of any power, therefore in the use of its rights and the current congress in the exercise of its sovereignty." The declaration of independence was not universally agreed upon by all Costa Rican politicians, leading to a civil conflict among the Costa Rican ruling class between those in favor of independence (republicans) and those in favor of remaining with Mexico (monarchists). On 14 March 1823, the Superior Gubernatorial Junta led by (who had succeeded Gallegos on 1 January 1823) was dissolved in favor of the Provincial Deputation led by
Rafael Francisco Osejo. Osejo and the new government, however, were overthrown in a
coup d'état by monarchist
Joaquín de Oreamuno on 29 March. Republican
Gregorio José Ramírez was declared as the leader of Costa Rica in opposition of Oreamuno in the city of
Alajuela on 1 April. Ramírez led republican forces in battle against the monarchists on 5 April 1823 in the
Battle of Ochomogo. The battle ended in a republican victory and the overthrow of Oreamuno. Afterwards, Ramírez assumed the position of supreme leader of Costa Rica. Ramírez was succeeded by
José María de Peralta on 16 April, who was then succeeded by a second Superior Gubernatorial Junta led by on 10 May, which remained in power until September 1824.
Unrest in Nicaragua José Anacleto Ordóñez, a Nicaraguan soldier, merchant, and nationalist who opposed Mexican rule over Nicaragua, launched a rebellion against the pro-Mexican government on 16 January 1823. He and his supporters bloodlessly captured the military barracks in
Granada. This was followed by a series of lootings and robberies by Ordóñez's supporters in the cities of Granada,
Jinotepe,
Juigalpa, and
Masaya. The violence caused many in the affected cities to flee to
Managua, which remained under the control of pro-Mexican forces. On 23 February 1823, Nicaraguan governor (who had been Nicaragua's final Spanish governor) forcibly recaptured Granada with an army of 1,000 soldiers, forcing Ordóñez and his supporters to flee the city. Ordóñez bestowed upon himself the title of and retreated to Masaya, where he continued his rebellion. On 17 April, González Saravia stepped down as the governor of Nicaragua and was replaced by
José Carmen Salazar. Five days later, Ordóñez's rebel forces captured Crisanto Sacasa, the pro-Mexican commander of Granada, and held him as a
prisoner of war. Salazar attempted to make peace with Ordóñez's rebellion, but Ordoñez's rebellion continued well past the independence of Central America, resulting in Ordóñez overthrowing the government of
Pablo Méndez in August 1824. == Independence from Mexico ==