A dual-power electromechanical lock is provided. The lock comprises a lock cover and a lock body with a latch therein, wherein the latch is installed in the lock body by a rotation restoring mechanism, the lock body is provided with a main power device in transmission connection with the latch, the lock cover is provided with a key hole corresponding to a key, a mechanical power device corresponding to the main power device is provided inside the lock body, and the mechanical power device is in transmission connection with the main power device.