A magnetic lock is a simple locking device that consists of an electromagnet and armature plate. By attaching the electromagnet to the door frame and the armature plate to the door, a current passing through the electromagnet attracts the armature plate holding the door shut
The magnetic lock relies upon some of the basic concepts of electromagnetism. Essentially it consists of an electromagnet attracting a conductor with a force sufficiently large enough to prevent the door from being opened.