{{Infobox rail line | name=Lübeck–Hamburg | routenumber = 104, 140 | linenumber = 1120 | linelength_km= 62.8 | gauge = | electrification = 15 kV/16.7 Hz AC overhead catenary | image = Karte Bahnstrecke Lübeck-Hamburg.png | image_width= 300px | caption= The Lübeck–Hamburg line | locale=Schleswig-Holstein and Hamburg |map_state= |map = {{Routemap|inline=1 |title =no |footnote=Source: German railway atlas|map= STR~~ ~~ ~~from Kiel, from Puttgarden ABZg+l~~ ~~ ~~from Lübeck-Travemünde BHF~~0.000~~Lübeck Hbf eABZgr~~ ~~ ~~to Bad Segeberg DST~~2.150~~Lübeck main freight yard eBHF~~Lübeck-Genin ABZgl~~2.488~~ ~~to Lüneburg, to Bad Kleinen hKRZWae~~ ~~ ~~Trave hKRZWae~~ ~~ ~~Elbe-Lübeck Canal KMW~~~~ ~~less 1053 m eHST~~~~Lübeck-Moisling~~(in plannng) eHST~~7.52~~Lübeck-Niendorf hKRZWae~~ ~~ ~~Trave BHF~~15.833~~Reinfeld (Holstein) hSTRae~~ ~~ ~~B 75 hKRZWae~~ ~~ ~~Trave ABZg+r~~ ~~ ~~from Neumünster xS+BHF~~(39.969) 23.887~~Bad Oldesloe~~(S-Bahn planned) ABZgr~~ ~~ ~~to Elmshorn eABZgl~~ ~~ ~~to Ratzeburg eABZgl~~ ~~ ~~to Schwarzenbek xS+BHF~~(33.885) 29.971~~Kupfermühle~~(S-Bahn planned) SBRÜCKE~~ ~~ ~~A 21 xS+BHF~~28.451 35.405~~Bargteheide~~(S-Bahn planned) eBS2+l\BS2+r~~ ~~ ~~(end of planned S-Bahn) exSHST\HST~~23.946 39.910~~ exSTR\DST~~40.3~~Ahrensburg Nord~~(siding) exWBRÜCKE1\WBRÜCKE1~~41.242~~ ~~Hünnau exSBHF\BHF~~21.419 42.437~~Ahrensburg~~(S-Bahn planned) xmKRZo\mKRZo~~43.491~~ ~~U1 Volksdorf – Großhansdorf exSHST\STR~~ ~~Ahrensburg West~~(planned) exSTR+GRZq\STR+GRZq~~16.827 47.029~~ ~~ state border exWBRÜCKE2\WBRÜCKE2~~16.079 ~~ ~~Stellmoorer Quellfluss exWBRÜCKE1\WBRÜCKE1~~13.583 ~~ ~~Wandse exSTR\DST~~51.0~~Hamburg-Rahlstedt Bbf exWBRÜCKE1\WBRÜCKE1~~12.691 ~~ ~~Wandse exSBHF\BHF~~12.223 51.665~~ exWBRÜCKE1\WBRÜCKE1~~10.864 ~~ ~~Wandse exSHST\STR~~10.496 ~~Pulverhof~~(planned) exSHST\HST~~9.273 54.436~~{{BSto|Hamburg-Tonndorf (formerly|Wandsbek Ost, dismantling planned)}} exSBHF\STR~~7.620 ~~Holstenhofweg~~(planned) exKMW\STR~~6.829 ~~ ~~System change DC/AC (planned) exSHST\STR~~6.038 ~~Bovestraße~~(planned) exWBRÜCKE2\WBRÜCKE2~~5.844 ~~ ~~Gehölzgraben exSTR\BHF~~58.200~~ exSBHF\STR~~5.329 ~~Claudiusstraße~~(planned) exSTR\kABZg2 \xKRZo\KRZo+k1\kABZq+4~~4.590 ~~ ~~Freight bypass xABZg+r\STR~~4.300 ~~ ~~ SBHF\HST~~4.170 59.689~~Hamburg Hasselbrook SHST\STR~~2.793 ~~Landwehr SBHF\eBHF~~1.530 ~~Hamburg Berliner Tor ABZg+l\ABZg+l~~ ~~ ~~S-Bahn from Bergedorf, from Berlin ABZg+l\KRZhl~~ ~~ ~~S-Bahn from Harburg STR\ABZg+l~~ ~~ ~~from Hanover, to Berlin SBHF\BHF~~0.110 63.896~~Hamburg Hbf~~(Keilbahnhof) STR\STR~~ ~~ ~~to Hamburg-Altona }} }} The Hamburg–Lübeck railway is one of the most important mainline railways of the German states of Schleswig-Holstein and Hamburg. It connects the two Hanseatic cities of Hamburg and Lübeck, and is part of the line to Denmark. The line was opened in 1865. Route The line runs the south-west from Lübeck through mostly agricultural, undulating land. The Trave river is crossed three times. The most important intermediate stop is Bad Oldesloe, where the line connects with hourly services on the line to Bad Segeberg and Neumünster, operated by Nordbahn. Between Ahrensburg and Hamburg-Rahlstedt the line runs along the Stellmoor tunnel valley. In the city of Hamburg the line crosses the rail freight bypass and then runs parallel to the S-Bahn line until Hamburg Hauptbahnhof is reached from the east. History The first plans to build a direct rail link between Hamburg and Lübeck were put forward