Urchin-like Ni–P microstructures with room-temperature magnetism have been successfully synthesized via a simple water–DMF solvothermal route. The as-obtained product exhibits good capacity to rapidly remove heavy-metal ions such as Cd2+ and Pb2+ ions from