Known in the 8th century as Rathaldovilare, the town passed from the Bishops of Basel to the Lords of Rappoltstein, who were among the most famous nobles in Alsace.
When the family became extinct in 1673, this office of "King of the Pipers" (Pfeiferkönig) passed to the Counts Palatine of Zweibrücken-Birkenfeld.