Neodymium magnet is mainly a composition of neodymium, iron, and boron. When the magnets are exposed to air, the iron in the magnet can rust and ruin the magnet, because iron is easy to be oxidized. Thus, to prevent the magnet from corrosion, the magnet have to be coated.