A magnetic keeper is a piece of wood or soft iron which is used in storing magnets because bar magnets get demagnetised when the poles are left free for a long time. In order to preserve the magnetism of the magnets, a keeper is kept across a pair of bar magnets with unlike poles beside each other. This way a continuous path is provided for the magnetic field lines to form a loop around it.