The invention discloses a magnetic engraving lock. The magnetic engraving lock comprises a lock shell, a lock cylinder, a lock sleeve, a clamp spring, a row piece, a spring, a long magnet, a middle magnet, a short magnet, a short magnet and a key; the lock cylinder is movably sleeved in the lock cylinder hole of the lock shell, the lock sleeve is movably connected to the outer end of the lock shell in a sleeved mode, and the lock sleeve is clamped on the lock shell through the clamp spring; the long magnet, the middle magnet and the short magnet is movably sleeved in the through groove of thelock cylinder, the body of the key is made of copper materials, an iron block is inlaid in the head of the key, and the iron block is opposite to the long magnet. Due to the fact that the iron block at the head of the key is matched with the long magnet, the middle magnet and the short magnet in the corresponding area of the lock cylinder, when the key is inserted into the lockset, the key tooth type corresponds to the corresponding lock password, the magnet can be attracted by the iron block inlaid in the key, so that the magnet is in a suction state, the unlocking requirement is met, and themethod has the advantages of being high in safety.