After the Bavarian parliament had passed a bill for the construction of the Ludwig South-North Railway on 25 August 1843, work began on the line later in the year.
Like all lines built in Bavaria at that time, the line was originally built as a single track line.