How did workers respond to harsh working conditions?

Workers protested against harsh working conditions. This led to the formation of unions in order to protect the rights of the worker.