The making of a railway