Hydrogen embrittlement is prevented in Sm.sub.2Co.sub.17-based magnets and
R.sub.2Fe.sub.14B-based magnets by metal plating the magnet, then
carrying out heat treatment, or by forming a metal oxide or metal nitride
layer on the metal plating layer or directly on the magnet itself.