Today, there is no railway in San Marino, but for a short period before World War II, it had a single narrow-gauge line called the Ferrovia Rimini–San Marino which connected the country with the Italian rail network at Rimini. Because of the difficulties in accessing the capital, City of San Marino, with its mountain-top location, the terminus station was planned to be located in the village of Valdragone, but was extended to reach the capital through a steep and winding track comprising many tunnels. The railway was opened on 12 June 1932.