Industrialization in the late 19th century led to rapid population growth in cities which overwhelmed infrastructure and living conditions. New inventions fueled increased factory production, providing many jobs but with long hours, low pay, and unsafe conditions. Workers organized unions to demand better treatment, using strikes that sometimes turned violent as companies hired replacements. Both unions and the government took steps to improve conditions, such as pushing for an eight hour work day.