The rare earths are becoming increasingly important in improving energy efficiency and developing clean technologies. This is due to their essential role in permanent magnets. Neodymium-iron-boron magnets are the most often used rare-earth permanent magnet. The objective of our work involves three steps: first we analyze the impurities from a magnetic waste.The second step includes extraction and determining the content of major elements. The third step involves producing an Nd-Fe alloy. The neutron activation (neutron flux of 3.4x1012n/cm≤/s), the SEM/EDX and DRX are used. We begin with an embrittlement of our material with hydrogen followed by acid leaching. The detected elements are: Ni, Al, Ti, Cu, Mn, In, Ta, Ce, Sm, Eu, Np, Yb, Gd, Lu. The analysis of the magnet by EDX shows that this sample contains Fe, Nd, Pr, and boron. The alloys are elaborated by ball milling.