Two railway lines running inland from the coast (the Baturité line from Fortaleza to Senador Pompeu, 179 miles , and the Sobral line from the port of Camocim to Ipu, 134 miles), were built by the national government after the drought of 1877–1878 to give work to the starving refugees, and were later operated under leases.