Summary:
Units are built in cities. Each unit has a certain "Production Cost" which determines how many units of Production a city must expend to produce the unit. In addition, in order to construct a unit your civilization must have knowledge of the requisite technology (you must know the "Archery" technology for example to construct Archer units). Some units also require that your civ have access to certain resources to construct them (Swordsmen require Iron, for instance).