How does Levitation Work?

Levitation is described as to be revolving around the magnetic principle. The two magnets are naturally attached to each other. Both of the magnets push away from each other with force causing levitation.