The invention relates to an electric control lock, which comprises a flywheel stored energy transmission mechanism, a latch bolt instantaneous locking mechanism and an electric driving mechanism. The flywheel stored energy transmission mechanism is composed of a rack, a driving pinion, a one-way ratchet wheel, a flywheel, a one-way pawl, a compression spring, a rotating shaft, an eccentric crankshaft and a groove; the latch bolt instantaneous locking mechanism is composed of a latch bolt, a roller, a latch bolt bar, a resetting spring of the latch bolt bar, a step, a bayonet lock plate, a shifting fork block and a resetting spring of the shifting fork block; and the electric driving mechanism is composed of an electromagnet, an armature iron, a pulling plate of the armature iron, a connecting rod, a pull rod, an unlocking connecting rod key, a bayonet lock plate and a resetting spring of the unlocking connecting rod key. The electric control lock is characterized in that a main lock tongue body and all lock tongues on a universal hauling piece, as well as a guide pipe fixed on the main lock tongue body, can be fully and automatically inserted into the door frame during the process of closing the door, and can be automatically retracted during the process of opening the door; the force of the electric opening mechanism is small; multi-dimensional locking and unlocking can be fully achieved; the anti-theft performance is good; the operation is convenient; and the electric control lock facilitates all the intelligent controllers to be used in a matching manner, such as electric control magnetic cards, remote controllers and fingerprints, etc.