During the Peninsular war, the city's horsemen participated in the decisive Battle of Bailén, helping to fight back Napoleon's elite Imperial Dragoons commanded by General Dupont in the first major defeat of the Grande Armée on 16–19 July 1808. Their success is still recalled by the townspeople.