In 1815, Neustadt became part of the Kingdom of Bavaria until 1945, along with the rest of the Palatinate which was one of 8 Bavarian districts (Rhine District). As of 1837 the district was renamed as "Pfalz". As a result of this resubordination, in 1818 the town became the seat of a "Landkommissariat" (called a "Bezirksamt" from 1862 and a "Landkreis" from 1939). In 1832 the Hambach Festival took place near the town. In 1847, Neustadt was connected to the railway network by the Palatine Ludwig Railway.