To prevent the sugar from spoiling, rapid transport was necessary, and to this end a special railway line was laid down through the valley in the late 1880s, connecting the Valle de los Ingenios with Trinidad and the port at Casilda, 6 kilometers from Trinidad, on the coast.