Most table salt comes from the salt mines and is extracted from the underground deposits by the method of hydraulic mining. Water is pumped below the earth surface, dissolving the salt deposits and forming salt brine. Is then brought to the surface, purified from mineral contents and evaporated to form almost pure sodium chloride. Anticaking agents (usually aluminosilicate) are then added to prevent clumping.
Please note these two myths about table salt: