An electromagnetic lock, magnetic lock, or maglock, is a locking device that consists of an electromagnet and an armature plate. It is a magnet that is created when an electrical current is passed through a solenoid (coiled wire wrapped around a metal core).