Tripoli even had a railway station with some small railway connections to nearby cities, when in August 1941 the Italians started to build a new  railway (with a  gauge, like the one used in Egypt and Tunisia) between Tripoli and Benghazi. But the war (with the defeat of the Italian Army) stopped the construction the next year.