San Marino, also known as the Most Serene Republic of San Marino, is an enclaved small-sized country, surrounded by Italy, situated on the Italian Peninsula on the northeastern side of the Apennine Mountains. Its size is just over 61 km2 (24 sq mi), with a population of 33,562. Its capital is the City of San Marino and its largest settlement is Dogana in the municipality of Serravalle. San Marino has the smallest population of all the members of the Council of Europe. San Marino is located close to the riviera of Rimini, one of Italy's main coastal resort areas.

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. An advanced system for its time, it was an electric railway, powered from overhead cables. It was well built and had a high frequency of passengers, but was almost completely destroyed during World War II. Many facilities such as bridges, tunnels, and stations remain visible today, and some have been converted to parks, public footpaths, or traffic routes.

More Info: en.wikipedia.org