This application relates to the field of switches, and more particularly to a
magnetic switch for children's play, including a magnetic lock and a magnetic key. The magnetic lock includes a mounting base for connecting to a cabinet door, a latching structure rotatably disposed on the mounting base for engaging the cabinet door, and a
torsion spring disposed between the latching structure and the mounting base. The latching structure is provided with a first magnetic element. The magnetic key includes a
handle portion and a magnetic part disposed on one side of the
handle portion. The magnetic part is provided with a second magnetic element, which is close to the first magnetic element to form a magnetic attraction. By pressing the magnetic key against the cabinet door at the position where the magnetic lock is located on the back of the cabinet door and sliding it downwards, the latching structure rotates to release the latching restriction on the cabinet door. After removing the magnetic key, the latching structure can be reset under the elastic restoring action of the
torsion spring. This structure can ensure the personal safety of children when opening the cabinet door and avoid the potential accidental injury to children caused by the sharp parts of existing keys.