A bearing is a machine element that supports another moving element and allows relative motion while carrying a load. There are two main types of bearings: ball bearings, which use balls to separate the surfaces, and roller bearings, which use rollers. Roller bearings can carry greater loads than ball bearings in the same space due to line contact versus point contact. Magnetic bearings support loads using magnetic levitation without physical contact through the use of electromagnets and a control system. They have advantages like low friction, lack of wear, and ability to run without lubrication.