In 1871, construction was started on a railroad from Alajuela to Puerto Limón, via San José, on the Caribbean coast; the project was initiated by the government of General Tomás Guardia Gutiérrez and was surveyed in 1868 by the British civil engineer Edmund Wragge. The railroad from Alajuela to San José was completed by the beginning of 1873 and later continued until Cartago. Materials and equipment were brought into Alajuela from Puntarenas by oxen-powered carts. Due to a shortage of finances and natural obstacles (especially around Río Sucio), the construction of the remaining sections was delayed, and the entire line did not become operational until December 7, 1890.