Dear Student ,
Magnet is a device that attracts iron and produces a magnetic field.All magnets are made of a group of metals called the ferromagnetic metals. These are metals such as nickel and iron. Each of these metals have the special property of being able to be magnetized uniformly. When we ask how a magnet works we are simply asking how the object we call a magnet exerts it’s magnetic field.
Regards