How Magnets Work?

Magnets are objects that produce magnetic fields and attract certain types of metals such as iron, nickel and cobalt. The magnetic field pulls to the metal that it is being put near and stays in place.