With magnets, opposite poles attract and like poles repel each other. This is the basic principle behind electromagnetic propulsion. Electromagnets are similar to other magnets in that they attract metal objects, but the magnetic pull is temporary and they can be turned on and off and reversed.