When a magnet gets near certain non-magnetic metals, the magnetic field of the magnet flows through the metal. This causes the metal's moving parts to start moving in the same direction as the magnet and become attracted to the magnet. Magnets can be used to make things levitate. Some trains use magnets to levitate them over a track and travel with little friction.