For successful levitation and control of all 6 axes (degrees of freedom; 3 translational and 3 rotational) a combination of permanent magnets and electromagnets or diamagnets or superconductors as well as attractive and repulsive fields can be used. From Earnshaw's theorem at least one stable axis must be present for the system to levitate successfully, but the other axes can be stabilized using ferromagnetism.