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 hard to separate or push away from each other. Magnets can also use this force to levitate metal balls weighing over 2 grams in midair.