According to the aluminum
alloy door and window with the anti-theft function in the field of
doors and windows, through the built-in anti-theft net arranged in the window frame, an independent anti-theft net does not need to be installed on the outer side of the aluminum
alloy window, and through the pair of anti-theft ropes arranged in a
bilateral symmetry mode and the first winding mechanism, the anti-theft effect is achieved; a pair of anti-theft ropes which are arranged in a
bilateral symmetry mode is tensioned to form a vertical grid-shaped anti-theft net, rapid erection of the anti-theft net is achieved, the anti-theft ropes are rapidly pulled and stored through a storage mechanism comprising a traction ring, a traction
rope and a second winding mechanism, rapid storage of the anti-theft net is achieved, and the anti-theft net is convenient to use. The problem that a traditional detachable anti-theft net is tedious in operation is solved, after the anti-theft
rope is stored, the aluminum
alloy window has a large viewing view field, and practicability and attractiveness are achieved; in addition, by arranging a
human body proximity sensor, a distance sensor, a window sash driving mechanism and an anti-theft
system, different anti-theft operations are automatically adopted according to different scenes, and multi-stage anti-theft is achieved.