Usually the magnet portion of the lock is mounted on the best on the door frame and the armature plate is hooked up to your door. The 2 elements make Make contact with in the event the door is shut. In the event the magnet receives electricity, it creates a magnetic pull that triggers the armature plate to bring in the magnet, creating a locking ac