On 12 September 1840, the Grand Duchy of Baden opened a state railway: the route from Mannheim to Heidelberg and the first section of the 285 kilometers Baden Main Line from Mannheim to Basle, which reached Freiburg im Breisgau on 1 August 1845, and which was completed in 1855.