Magnets are objects that have the ability to attract ferromagnetic materials, such as iron, due to their magnetic field. Magnetism is the invisible force exerted by magnets and other magnetic materials, as a result of the alignment of their electrons. This magnetic force can attract or repel objects, and is essential in the creation of devices such as electric motors and power generators.