In 1793, it was the location of the Battle of Pirmasens between Prussia and the French "Corps of the Vosges". The French lost the battle, but their opponents' divisions nevertheless enabled them to return and occupy Pirmasens by the end of the year: between 1798 and 1814, the town was included in the French département of Mont-Tonnerre ("Donnersberg-Département" in German). After the French defeat, it was made part of Bavaria together with the Rhenish Palatinate.