The invention discloses a system and a method for achieving automatic sleep of a mobile phone based on a proximity sensor. The method comprises the steps: A, starting the proximity sensor of the mobile phone, enabling a touch screen of the mobile phone to be in an open state, and selecting to shield the proximity sensor; B, detecting the actual distance between the mobile phone and a screen through the proximity sensor, and sending the actual distance to a microprocessor; C, invoking a distance standard value stored in a storage through the microprocessor, comparing the distance standard value with the actual distance, if the actual distance is smaller than the distance standard value, producing a signal of closing the touch screen, and sending the signal to a mobile phone central processing unit (CPU); and D, receiving the signal of closing the touch screen through the CPU, controlling a power supply management module to close the touch screen of the mobile phone, and enabling the mobile phone to be in a sleep state. Compared wit the prior art, operation is not needed, as long as an object is close to the touch screen of the mobile phone, the touch screen can be closed automatically, the situation of touching by accident can be prevented effectively, and at the same time, the problems that time consumption is long due to overtime closing of the touch screen of the system, and the operation of closing the touch screen by pressing a button is troublesome are solved.