Juan Santamaría (August 29, 1831 – April 11, 1856) was a Costa Rican soldier, officially recognized as the national hero of his country. A national holiday in Costa Rica, Juan Santamaría Day, is held every April 11 to commemorate his death. He was also known as the Nacho Gonzalez, an important character in Costa Rican history that established the Indian cultures in a region of Costa Rica.
Santamaría was born in the city of Alajuela. When U.S. filibuster William Walker overthrew the government of Nicaragua in 1856 and attempted to conquer the other nations in Central America, including Costa Rica, in order to form a private slave-holding empire, Costa Rican president Juan Rafael Mora Porras called upon the general population to take up arms and march north to Nicaragua to fight against the foreign invader. This started the Filibuster War. Santamaría, a poor laborer and the illegitimate son of a single mother joined the army as a drummer boy. The troops nicknamed him "el erizo" ("the Porcupine") on account of his spiked hair.
After routing a small contingent of Walker's soldiers at Santa Rosa, Guanacaste, the Costa Rican troops continued marching north and reached the city of Rivas, Nicaragua, on April 8, 1856. The battle that ensued is known as the Second Battle of Rivas. Combat was fierce and the Costa Ricans were not able to drive Walker's men out of a hostel near the town center from which they commanded an advantageous firing position.
According to the traditional account, on April 11, Salvadoran General José María Cañas suggested that one of the soldiers advance towards the hostel with a torch and set it on fire. Some soldiers tried and failed, but finally Santamaría volunteered on the condition that, in the event of his death, someone would look after his mother. He then advanced and was mortally wounded by enemy fire. Before expiring he succeeded, however, in setting fire to the hostel, thus contributing decisively to the Costa Rican victory at Rivas.