Puerto Ricans have had a long history of defending their island, having fought off against attacks from Caribs and pirates, against invasions of other European powers at war with Spain which sought to capture Puerto Rico, enlisting alongside General Bernardo de Gálvez during the American Revolutionary War in the battles of Baton Rouge, Mobile, Pensacola and St. Louis, and fighting in Europe during the Napoleonic Wars against the forces of Napoleon Bonaparte at the Siege of Saragossa.