An automatic urinal cleaning robot comprises a photoelectric sensor, a lower lifting plate, a lead screw, a lifting motor, an upper lifting plate, curved guide rails, slider motors, sliders, a fixed plate, a plate-shaped sprayer, a guide pipe, a circular rolling brush, a circular rolling brush fixed block and the like. The robot is characterized in that the curved guide rails are mounted in grooves in four corners of the upper lifting plate, the sliders are matched with the curved guide rails, horizontal distance measurement sensors are arranged on the front side surfaces of the sliders, the sliders are connected with the slider motors, the circular rolling brush and the plate-shaped sprayer are positioned on the fixed plate, a plate-shaped sprayer support is hinged onto the fixed plate, two ends of the circular rolling brush fixed block are mounted on the plate-shaped sprayer support, the middle and lower portion of the plate-shaped sprayer support is connected with the upper end of abuffer spring, the circular rolling brush and the plate-shaped sprayer are mounted on the circular rolling brush fixed block, the plate-shaped sprayer is connected with a conveying pump through the guide pipe, a horizontal cylinder is fixed on a horizontal supporting plate of the fixed plate, a vertical motor is mounted on a vertical motor seat, and a spherical brush is mounted on a spindle of the vertical motor.