Since there was no inter-oceanic route between the Atlantic and Pacific Oceans at the time, and the
transcontinental railway did not yet exist, a major trade route between
New York City and San Francisco ran through southern Nicaragua. Ships from New York entered the
San Juan River from the Atlantic and sailed across
Lake Nicaragua. People and goods were then transported by
stagecoach across a narrow strip of land near the city of
Rivas, before reaching the Pacific and ships to San Francisco. The commercial exploitation of this route had been granted by Nicaragua to the
Accessory Transit Company, controlled by shipping magnate
Cornelius Vanderbilt. In 1854, a civil war erupted in Nicaragua between the
Legitimist Party (also called the Conservative Party), based in the city of
Granada, and the
Democratic Party (also called the Liberal Party), based in
León. The Democratic Party sought military support from Walker who, to circumvent U.S. neutrality laws, obtained a contract from Democratic president
Francisco Castellón to bring as many as three hundred "colonists" to Nicaragua. These
mercenaries received the right to bear arms in the service of the Democratic government. Walker sailed from San Francisco on May 3, 1855, with approximately sixty men. Upon landing, the force was reinforced by 110 locals. With Walker's expeditionary force was the well-known explorer and journalist
Charles Wilkins Webber, as well as Belgian-born adventurer
Charles Frederick Henningsen, a veteran of the
First Carlist War, the
Hungarian Revolution, and the
war in Circassia. Besides Henningsen, three members of Walker's forces who became
Confederate officers were
Birkett D. Fry,
Robert C. Tyler, and
Chatham Roberdeau Wheat. With Castellón's consent, Walker
attacked the Legitimists in Rivas, near the trans-isthmian route. He was driven off, but not without inflicting heavy casualties. In this
First Battle of Rivas, a schoolteacher called
Enmanuel Mongalo y Rubio (1834–1872) burned the Filibuster headquarters. On September 3, during the
Battle of La Virgen, Walker defeated the Legitimist army. On October 13, he conquered Granada and took effective control of the country. Initially, as commander of the army, Walker ruled Nicaragua through provisional President
Patricio Rivas.
U.S. President Franklin Pierce recognized Walker's regime as the legitimate government of Nicaragua on May 20, 1856, and on June 3 the Democratic national convention expressed support of the effort to "regenerate" Nicaragua. However, Walker's first ambassadorial appointment, Colonel
Parker H. French, was refused recognition. On September 22, Walker repealed Nicaraguan laws prohibiting slavery, attempting to gain support from the Southern states.
C. K. Garrison and
Charles Morgan, subordinates of Vanderbilt's Accessory Transit Company, provided financial and logistical support to the Filibusters in exchange for Walker, as ruler of Nicaragua, seizing the company's property (on the pretext of a charter violation) and turning it over to Garrison and Morgan. Outraged, Vanderbilt dispatched two secret agents to the
Costa Rican government with plans to fight Walker. They would help regain control of Vanderbilt's steamboats which had become a logistical lifeline for Walker's army. Concerned about Walker's intentions in the region, Costa Rican President
Juan Rafael Mora Porras rejected his diplomatic overtures and began preparing the country's military for a potential conflict. Walker organized a battalion of four companies, of which one was composed of Germans, a second of Frenchmen, and the other two of Americans, totaling 240 men placed under the command of Colonel Schlessinger to invade Costa Rica in a preemptive action. This advance force was defeated at the
Battle of Santa Rosa on March 20, 1856. The most important strategic defeat of Walker came during the
Campaign of 1856–57 when the Costa Rican army, led by Porras, General
José Joaquín Mora Porras (the president's brother), and General
José María Cañas (1809–1860), defeated the Filibusters in Rivas on April 11, 1856 (the
Second Battle of Rivas). It was in this battle that the soldier and drummer
Juan Santamaría sacrificed himself by setting the Filibuster stronghold on fire. In parallel with Enmanuel Mongalo y Rubio in Nicaragua, Santamaría would become Costa Rica's national hero. Walker deliberately contaminated the water wells of Rivas with corpses. Later, a
cholera epidemic spread to the Costa Rican troops and the civilian population of Rivas. Within a few months nearly 10,000 civilians had died, almost ten percent of the population of Costa Rica. From the north, President
José Santos Guardiola sent Honduran troops under the leadership of the Xatruch brothers, who joined Salvadoran troops to fight Walker.
Florencio Xatruch led his troops against Walker and the filibusters in la Puebla, Rivas. Later, because of the opposition of other Central American armies, José Joaquín Mora Porras was made Commandant General-in-Chief of the Allied Armies of Central America in the
Third Battle of Rivas (April 1857). During this civil war, Honduras and El Salvador recognized Xatruch as brigade and division general. On June 12, 1857, after Walker surrendered, Xatruch made a triumphant entrance to
Comayagua, which was then the capital of Honduras. Both the nickname by which Hondurans are known today,
Catracho, and the more infamous nickname for Salvadorans, "Salvatrucho", are derived from Xatruch's figure and successful campaign as leader of the allied armies of Central America, as the troops of El Salvador and Honduras were national heroes, fighting side by side as Central American brothers against William Walker's troops. As the general and his soldiers returned from battle, some Nicaraguans affectionately yelled out ("Here come Xatruch's boys!") However, Nicaraguans had trouble pronouncing the general's
Catalan name, so they altered the phrase to "los catruches" and ultimately to "los catrachos". A key role was played by the Costa Rican Army in unifying the other Central American armies to fight against Filibusters. The "Campaign of the Transit" (1857) is the name given by Costa Rican historians to the groups of several battles fought by the Costa Rican Army, supervised by Colonel Salvador Mora, and led by Colonel Blanco and Colonel Salazar at the San Juan River. By establishing control of this bi-national river at its border with Nicaragua, Costa Rica prevented military reinforcements from reaching Walker and his Filibuster troops via the Caribbean Sea. Also, Costa Rican diplomacy neutralized U.S. official support for Walker by taking advantage of the dispute between the magnate
Cornelius Vanderbilt and William Walker. . On October 12, 1856, during the siege of Granada, Guatemalan officer
José Víctor Zavala ran under heavy fire to capture Walker's flag and bring it back to the Central American coalition army trenches shouting "Filibuster bullets don't kill!". Zavala survived this adventure unscathed. Walker took up residence in Granada and set himself up as President of Nicaragua, after conducting a fraudulent election. He was inaugurated on July 12, 1856, and soon launched an Americanization program, reinstating slavery, declaring English an official language, and reorganizing currency and fiscal policy to encourage emigration from the United States. Realizing that his position was becoming precarious, he sought support from the
Southerners in the U.S. by recasting his campaign as a fight to spread the institution of black slavery, which was the basis of the Southern agrarian economy. With this in mind, Walker revoked Nicaragua's emancipation edict of 1821. This move increased Walker's popularity among Southern whites and attracted the attention of
Pierre Soulé, an influential
New Orleans politician, who campaigned to raise support for Walker's war. Nevertheless, Walker's army was weakened by massive defections and an epidemic of cholera and was finally defeated by the Central American coalition led by Costa Rican President
Juan Rafael Mora Porras (1814–1860). On October 12, 1856, Guatemalan Colonel
José Víctor Zavala crossed the square of the city to the house where Walker's soldiers took shelter. Under heavy fire, he reached the enemy's flag and carried it back with him, shouting to his men that the Filibuster bullets did not kill. On December 14, 1856, as Granada was surrounded by 4,000 troops from Costa Rica, Honduras, El Salvador, and Guatemala, along with independent Nicaraguan allies,
Charles Frederick Henningsen, one of Walker's generals, ordered his men to set the city ablaze before escaping and fighting their way to Lake Nicaragua. When retreating from Granada, the oldest Spanish colonial city in Nicaragua, he left a detachment with orders to level it in order to instill, as he put it, "a salutary dread of American justice". It took them over two weeks to smash, burn and flatten the city; all that remained were inscriptions on the ruins that read ("Here was Granada"). On May 1, 1857, Walker surrendered to Commander
Charles Henry Davis of the United States Navy under the pressure of Costa Rica and the Central American armies and was repatriated. Upon disembarking in New York City, he was greeted as a hero, but he alienated public opinion when he blamed his defeat on the U.S. Navy. Within six months, he set off on another expedition, but he was arrested by the U.S. Navy
Home Squadron under the command of Commodore
Hiram Paulding and once again returned to the U.S. amid considerable public controversy over the legality of the navy's actions. == Conviction and execution ==