The invention discloses a petroleum pipeline cleaning machine. The petroleum pipeline cleaning machine comprises a base, a cleaning brush, a rotating shaft, a motor, a vertical plate and an air pressure container; the vertical plate, the motor and the air pressure container are fixed on the base, a round hole is formed in the middle part of the vertical plate, a bearing is mounted in the round hole, the cleaning brush is mounted on the rotating shaft, the rotating shaft is connected with an output shaft of the motor by virtue of the bearing, soft hair and hard hair are arranged alternately on the cleaning brush and the hard hair is shorter than the soft hair, a water outlet pipe and an air pressure pipe are connected to a port of the air pressure container, the water outlet pipe penetrates through the vertical plate and extends to be above the cleaning brush, and one end of the air pressure pipe is connected to an air pressure handle. The petroleum pipeline cleaning machine is capable of quickly clearing a petroleum pipeline; the soft hair and the hard hair are used simultaneously to clear away oil contamination to the utmost extent; due to the telescopic structure of the rotating shaft, the cleaning range of the cleaning brush is expanded; the air pressure container is capable of jetting out a cleaning liquid or water to help to clear away the oil contamination; in short, because of the use of the petroleum pipeline cleaning machine, the efficiency is improved, and time and labor are saved.