Magnets can either attract or repel each other. A permanent magnet is an object that produces a magnetic field around itself. It is this field that enables them to stick to each other and to some types of metal. Specifically, they stick to ferromagnetic materials like iron and things that contain iron, such as steel.