Magnetic force is the force that attracts or repels objects and is used in many applications. It is used in the Earth's magnetic field and allows magnets to attract and repel each other, as seen when two magnets pull together or push apart. Magnets can also levitate metal balls, holding them up against gravity through magnetic force.