Abstract: This invention relates an electronic locking device that may be operated manually and by key input, selectively, depending upon the various circumstances. In the locking condition, a hole is provided on an unlocking member and a hole is provided in a retaining mechanism, and the holes are aligned to allow the insertion of a moving piece into the both holes; and at unlocking, both of the holes are misaligned to prevent the insertion of the moving piece into either of the two holes.