In this paper, we present a new route for recycling waste Mg with the production of MgH 2 nanofiber, which is a promising candidate for energy storage and conversion used in Li-ion batteries and H 2 storing technologies. Highly pure MgH 2 nanofibers were successfully manufactured from Mg-alloy swarfs (AM60B and AZ91D) via the hydriding chemical vapor deposition (HCVD) process. The possibility of recycling all types of Mg scraps using the HCVD process was demonstrated, which requires only a pretreatment of obtaining a dried raw material. The HCVD method shows many advantages over other methods in the synthesis of MgH 2 : it can produce MgH 2 at low cost using waste Mg as the raw material, requires less energy, offers a high-purity product, and enables control over the growth of nanosized structures.