Gema Salt/Mine

Are all those crystallized salts inside a mountain that came from brine from sea water source or a deposit of a salty spring and through the years have solidified and are currently exploited as salt mines.