During the 19th and early 20th centuries, urbanization resulted from and contributed to industrialization. New job opportunities in the cities spurred the mass movement of surplus population away from the countryside. At the same time, migrants provided cheap, plentiful labor for the emerging factories.