Several blocks of magnesium are fixed to the bottom of a ship to
prevent puncturing by undersea rocks
keep away the sharks
prevent action of water and salt
make the ship lighter
does not react with cold water but it decomposes with hot water.
forms a protective layer of oxide.