Minerals are produced in squares with sufficient Rockiness, sometimes supplemented by the addition of Mines and similar enhancements.
Once a base has exceeded its free SUPPORT level, any additional units (military or non-combat) consume one Mineral per turn of support.
Surplus minerals are applied to production of
facilities, units, and
secret projects which a base is creating. When sufficient minerals are accumulated, the facility or unit is built.