The invention relates to an electric control mechanical lock for a moped. The lock comprises a lock box, a box cover, an electric device installed in the lock box and a lock opening / closing executingmechanism connected with the electric device. The electric device is connected with the lock opening / closing executing mechanism are connected through a worm and gear pair. The electric device comprises a motor, the worm and gear pair and an output gear. The lock opening / closing executing mechanism comprises a sliding block, and a rack engaged with the output gear is arranged on the sliding block.The sliding block is installed on a guide rod in a sliding mode, the guide rod is installed on the lock box, an executing arm is arranged on the side, opposite to the rack, of the sliding block and provided with a lock rod in a sliding mode, a spring bolt is installed at the end, corresponding to a spring bolt hole, of the lock rod, the other end is provided with a limiting guide plate, the lockrod portion between the executing arm and the inner end face of the spring bolt is sleeved with an upper lock pressing spring, the lock rod portion between the executing arm and the inner end face ofthe limiting guide plate is sleeved with a reset spring, and a limiting baffle is arranged on a sliding groove and located on the same side as the limiting guide plate. The electric control mechanicallock has the advantages of being simple in structure, convenient and fast to assemble and disassemble, flexile in installation position, fast to open and close, high in stability, long in service life, free of clamping and wide in application range.