The tunnel was opened in 1990 as part of a program of major changes to the railway geography of this part of Zürich. Prior to these changes, Zürich Hauptbahnhof was a west-facing terminal station that required through trains to reverse in its platforms. Trains to and from the Lake Zürich right bank line had to traverse a long 270° curve to reach Stadelhofen station, whilst trains to and from the north and east were forced to use a rather indirect route through Zürich Oerlikon station. To improve these routings and allow the introduction of cross-city S-Bahn trains, the Hirschengraben Tunnel was constructed, taking a long direct route from new low-level platforms at Hauptbahnhof to Stadelhofen. At the same time the Zürichberg Tunnel was constructed from Stadelhofen to Stettbach, where a new station was constructed. To the east of Stettbach new links were constructed, linking to the Zürich to Winterthur line at Dietlikon station, and to the Wallisellen to Rapperswil line at Dübendorf station, thus allowing trains to take a direct route to and from the east and north of Zürich.