During the French Revolution, more precisely during the War of the Pyrenees, between 1793 and 1795, the region was the center of violent fights. The Fort Saint Elme was conquered successively by Royalists and Republicans. In 1794, the Spanish army took the fort. Six months later, the general Dugommier crushed with 11 000 cannonballs the garrison which surrendered on 25 May 1794 after a 22-day siege.