 During the War of Spanish Succession, the so-called Battle of Schmidmühlen took place in 1703.With Karl Theodor von Pfalz-Sulzbach becoming Elector Duke of Bavaria in 1778 government takeover, the area was again part of the Electorate of Bavaria, but the areas were incorporated only after the Napoleonic Wars of the Upper Palatinate.Schmidmühlen possessed a market court with magisterial proper rights.