Magnetic door locks work by using a magnet to hold the door closed. The magnet is typically located on the door frame, and the metal armature is located on the door. When the door is closed, the magnet and armature come together and create a strong magnetic force that holds the door in place.