The city lost population, with only around 6,000 inhabitants, and only the arrival of railroads in the 19th century, together with the timber industry, were able to boost Cuenca moderately, and population increased as a result to reach 10,000 inhabitants.