Answer
Costa Rica led the military coalition that defeated Walker in the Nicaraguan Civil War of 1856-1857. Costa Rica's President Juan Rafael Mora Porras declared war on Walker on November 10, 1856. Mora's forces, together with troops from Honduras, El Salvador, and Guatemala, defeated Walker at the Battle of Rivas on April 11, 1857.