Either from brines (natural brines of commercial importance are found in the Dead Sea, Austria, France, Germany, India, the United States, and the United Kingdom) or from rock salt.
Where I live, they used to get the salt in graduation houses (wrongly often named salinas) - now used only for 'inhaling':
(pics not from the spa I live in but the next one, 5 miles away)