A novel and facile magnetic-field-induced deposition process was put forward to fabricate nanostructured Co, Ni and CoNi alloy films supported on Cu foil, which are multifunctional nanomaterials with wide applications in different areas due to their ferromagnetic and superhydrophobic properties, as well as their excellent catalytic performance.