India built a modern railway system in the late 19th century which was the fourth largest in the world.