The Grand Duchy of Baden was an independent state in what is now southwestern Germany until the creation of the German Empire in 1871. It had its own state-owned railway company, the Grand Duchy of Baden State Railways (Großherzoglich Badische Staatseisenbahnen or G.Bad.St.E.), which was founded in 1840. At the time when it was integrated into the Deutsche Reichsbahn in 1920, its network had an overall length of about . History Foundation Baden was the second German state after the Duchy of Brunswick to build and operate railways at state expense. In 1833 a proposal for the construction of a railway from Mannheim to Basle was put forward for the first time by Mannheim businessman, Ludwig Newhouse, but initially received no support from the Baden state government. Other proposals too by, for example Friedrich List, were unsuccessful at first. Not until the foundation of a railway company in the neighbouring French province of Alsace, for the construction of a line from Basle to Strasbourg in 1837, did any serious planning begin for the building of a railway in Baden in order to avoid the loss of trade routes to Alsace. At an extraordinary meeting of the state parliament, the Baden legislature passed three laws on 29 March 1838 for the construction of the first route between Mannheim and the Swiss border at Basle, as well as a stub line to Baden-Baden and a branch to Strasbourg. The construction of the railway line was to be funded by the state, something that had been championed especially by Karl Friedrich Nebenius. In September 1838 work started. The Ministry of the Interior was responsible for the construction of the railway, setting up for that purpose its own authority, the 'Railway Construction Division'. Later the railway construction authorities were incorporated into the 'Water and Road Construction Division'. Responsibility for the operation of the railway was, by contrast, given to the Foreign Ministry because it took over the running of the Postal Division, that from then on became the 'Post and Railway Division'. Not until the merger of the Baden Post Office into the Reichspost in 1872 did a separate railway administration emerge in Baden: the Grand Duchy of Baden State Railways. Development of the main lines The first route, called the Baden Mainline (Badische Hauptbahn), was built in sections between 1840 and 1863. The first, 18.5 km long, section between Mannheim and Heidelberg was