Rusting takes place with the presence of iron and water together. Near the coast, there is a lot of water. In addition, sodium chloride, salt, ionizes and is hydroscopic, both of which add to the problem. Hydroscopic means it absorbs moisture from the air, and the salt can then dissolve in the moisture. The moisture and the salt both contribute to the rusting problems with iron near the ocean.