The Canton of Thurgau initially refused to grant a concession for the line on its territory, as the route would not have favoured Thurgau. The Swiss Northeastern Railway (Die Schweizerische Nordostbahn) operated the competing Winterthur–Romanshorn railway through the Thurgau.
The Winterthur–Wil–Thur bridge section at Schwarzenbach was built by Julius Herz.[2] The Winterthur–Wil section was opened on 14 October 1855. The journey time was 40 minutes.
The line between Wil and Flawil was hotly debated. The SGAE applied for a concession for the easily-built route south of Uzwil’s local hill, the Vogelsberg, from Schwarzenbach via the Bettenauer Weiher and Oberuzwil to Flawil. Commercial interests preferred a route north of the Vogelsberg so that Uzwil could have a station. So the line was built with a tight S-curve on the edge of the Vogelsberg, where Uzwil station was later built. As a result, this S-curve is today one of the slowest sections of the whole line and the tightest curve on a relatively high-speed line in Switzerland.[3] The Wil–Flawil section was opened on 25 December 1855.
After the construction of the Glatt bridge at Egg between Flawil and Gossau was completed on 15 February 1856, the line reached Gossau and Winkeln. Finally, the line was extended to the town of St. Gallen on 24 March 1856. For this purpose, an iron lattice bridge designed by Karl Etzel was built over the Sitter, the original Sitter Viaduct.
Further development
A train coming from Winterthur derailed in Vonwil near St. Gallen on 31 December 1879. The two locomotives came to lie on the left and right of the railway track and the carriages were pushed into each other. The accident caused two deaths and several were injured, some seriously.
The route became part of the Swiss Federal Railways on 1 July 1902 when the national railways were nationalised. Starting in 1903, the SBB duplicated the line in stages and electrified it in 1927 at 15,000 Volt 16 ⅔ Hz. At the same time, the Algetshausen-Henau halt was opened and the Bühler industrial railway in Uzwil was handed over to the company.
In long-distance national traffic, the line is part of the West-East axis between St. Gallen and Geneva operated by InterCity (IC) trains. It is also used by international EuroCity (EC) trains (München Hbf–Bregenz–Zürich HB). In regional traffic, the line is used by InterRegio (IR) trains between Chur and Wil via St. Gallen (replacing the former Rheintal-Express, REX). In local traffic, the line is served by S-Bahn services: the S1 (St. Gallen–Wil, until 2018 with additional services in the peak-hour as former line S11) and S5 (St. Margrethen–St. Gallen–Gossau–Weinfelden) of St. Gallen S-Bahn and the S35 (Winterthur–Wil) of Zürich S-Bahn.
As of the December 2023 timetable change,[update] the following services use the railway line: