Factory

A factory is an automated terran structure which acts as the primary production center for vehicles and ammunition.

StarCraft
In StarCraft, the factory is used to construct vultures, s and goliaths. It also has an optional machine shop upgrade to enhance vehicles' offensive weapons and speed.

StarCraft II
In StarCraft II, the factory is compatible with the tech lab and reactor, albeit not both simultaneously.