Lithuania received its first railway connection in the middle of the 19th century, when the Warsaw – Saint Petersburg Railway was constructed. It included a stretch from Daugavpils via Vilnius and Kaunas to Virbalis. The first and only still operating tunnel was completed in 1860.