A magnet is something that produces a magnetic field.
See main article electromagnet
Hard and Soft magnetic materialsEdit
Soft magnetic materials are magnetized and demagnetized very easily, while hard magnetic materials are very difficult to be magnetized and demagnetized. Iron is a soft magnetic materials, which is why it is used in electromagnets, steel is a hard magnetic material.