In 1854, the Austro-Hungarian Empire opened a horse drawn railway line from Lisava to Bazijas. It was converted to locomotive traction in 1856. Although both towns are in present day Romania, about 27km of it fell within present day Serbia. Only a short stretch of this line remains in use today.
The primary railway development in Serbia itself commenced in 1884 with the opening of the 271km line from Beograd to Niš. It was constructed to standard (1435mm) gauge. Subsequent railway development used a variety of gauges, a complex situation which was only gradually resolved during the reconstruction of the then Yugoslavia following the Second World War.
Serbia has international rail links with Bosnia, Bulgaria, Croatia, Hungary, Kosovo, Montenegro, North Macedonia and Romania. Reconstruction of a section of the 760mm gauge Šargan Eight railway from Mokra Gora to Višegrad in Bosnia was completed in 2010, but only very occasional train services have operated on this section.
Photo image by Herbert Ortner from Wikimedia Commons