 After their extinction in the middle of the 15th century, the city came to the Margraviate of Baden-Baden, whereby a common rule was agreed with the counts of Nassau-Saarbrücken.After the joint ownership of Baden and Nassau was dissolved in 1629, the city then became a center of Baden-Baden rule.After the Reichsdeputationshauptschluss, Mahlberg became the seat of the eponymous Oberamt, which belonged to the Landvogtei Hochberg.