 As early as 1223, the town was granted city rights by Emperor Friedrich II.At that time Mahlberg was an imperial castle and the seat of an imperial school.At that time the place belonged to the domain of the Lords of Geroldseck.