The invention discloses an oil well pipe cleaning and sand flushing integrated device. The device comprises a shunt nipple, a shunt packer, a double-layer pipe body, a pipe scraper and a sand flushing nipple which are mutually communicated and are each of a double-layer pipe structure; the pipe cleaning and sand flushing method comprises the steps that the pipe scraper is opened, the shunt packer is recovered, the device is placed down in an oil well casing, a well cleaning fluid is injected into casing annulus, and pipe cleaning and well cleaning are completed; after the sand surface position is determined, the pipe scraper is recovered, and the shunt packer is subjected to setting; a sand cleaning fluid is injected into the casing annulus, and the bottom of a well is flushed through positive pressure sand flushing or negative pressure sand flushing; finally, the shunt packer is upset, and pulling out of the hole is conducted. According to the oil well pipe cleaning and sand flushing integrated device, pipe cleaning and sand flushing operation can be achieved at a time, for formation leakage, both positive pressure sand flushing and negative pressure sand flushing can be conducted, the risk of sticking operation is reduced, the pipe cleaning and sand flushing operation efficiency is improved, the well-completion operation cycle is shortened, and the well-completion operation cost is reduced.