A factory is a building where workers use machines to make things for sale. It usually means a building where companies use mass production to make different things. Many of the same thing are made in a short amount of time.
Factories during the industrial revolution had horrible working conditions.
Media related to Factories at Wikimedia Commons