Initially, the railway line from Bern to Fribourg opened on 2 July 1860 with a temporary terminal at Balliswil about 4 km north of the city, as the Grandfey Viaduct over the Saanegraben was not yet finished.