The filter is used to filter dust, dirt and other impurities inhaled by the sweeping robot to keep the robot clean and running normally. The filter can also prevent dust and dirt from entering the motor and other parts of the robot, thereby extending the service life of the robot.