"Lehrter Bahnhof" (Lehrte Station) opened in 1871 as the terminus of the railway linking Berlin with Lehrte, near Hanover, which later became Germany's most important east–west main line. In 1882, with the completion of the Stadtbahn (City Railway, Berlin's four-track central elevated railway line, which carries both local and main line services), just north of the station, a smaller interchange station called Lehrter Stadtbahnhof was opened to provide connections with the new line. This station later became part of the Berlin S-Bahn. In 1884, after the closure of nearby Hamburger Bahnhof (Hamburg Station), Lehrter Bahnhof became the terminus for trains to and from Hamburg.