 When his descendant Margrave Charles Alexander resigned in 1791, he sold his possessions to his Hohenzollern relatives in the Kingdom of Prussia.In the course of the German Mediatisation in 1803, Ludwigsstadt fell to the Electorate of Bavaria.In 1885 Ludwigsstadt achieved access to the Franconian Forest Railway line, connecting the Bavarian Ludwig South-North Railway near Lichtenfels with the Thuringian Saal Railway at Saalfeld.