A factory or plant was a building used for the manufacturing of goods by workers or machines.
In 2366, Doctor Paul Stubbs noted that he witnessed the construction of nanites in a plant in Dakar, Senegal. (TNG: "Evolution")