Named after an unknown saint (possibly Desiderius of Fontenelle), the town originated as a fortified settlement around a thirteenth-century château, eventually becoming a royal fortress to guard the French kingdom's eastern approaches. The town was besieged and captured by Charles V, Holy Roman Emperor, in the summer of 1544. A fire in 1775 destroyed two-thirds of the town center.