The invention relates to the technical field of windows and doors, and discloses an anti-falling automatic cleaning window frame. The anti-falling automatic cleaning window frame comprises a window and a window frame below the window, and is characterized in that the window is fixedly connected with a pulley shaft, the pulley shaft is rotatably connected with a pulley, the pulley rolls on the window frame, and a sliding block capable of sliding is arranged in the window frame; and the sliding block can limit the upward movement of the pulley through a movable wheel, the sliding block is fixedly connected with a cleaning wheel shaft, and the cleaning wheel shaft is provided with an open hole. According to the anti-falling automatic cleaning window frame, the automatic locking sliding block is arranged, window rolling wheels can be automatically locked and limited when the window is installed, the rolling wheels are prevented from being separated from sliding rails, and therefore the window is prevented from being separated from the window frame; and meanwhile, cleaning rollers and an inflating device are arranged, and foreign matters on the inner side of the window frame can be cleared and blown away when the window is pulled, so that the window is pushed and pulled smoothly, and the risk that the window is separated from the window frame is reduced.