During the 1870s, the decline of the coffee region of the Paraíba Valley and in some areas of sugar production, caused many plantation owners to invest not only in the cotton textile industry, but also in other manufacturing sectors. Deployment of a railway network throughout the national territory also stimulated the emergence of new industrial activities, mainly in São Paulo. Industry experienced a major impetus in this period. From the 1870s onward, the great expansion of industrialization became a constant in Brazil. In 1866, there were nine textile factories with 795 workers. In 1881, there were 46 textile factories through the country: 12 in Bahia; 11 in Rio de Janeiro; nine in São Paulo; nine in Minas Gerais; and five in other provinces. The number of establishments diminished a little by 1885 to 42 textile factories with 3,172 workers. However, the drop did not impede overall growth in the sector up to 1889.