The invention discloses a yarn printing and dyeing automatic cleaning mechanism. The yarn printing and dyeing automatic cleaning mechanism comprises a frame, a yarn unreeling device, a first yarn separating rack, a yarn rinsing device, a water squeezing mechanism, a water blowing mechanism, a thermal drying mechanism, a yarn storage mechanism, a second yarn separating rack, a reeling device and a plurality of groups of transmission rollers, wherein the yarn unreeling device, the first yarn separating rack, the yarn rinsing device, the water squeezing mechanism, the water blowing mechanism, the thermal drying mechanism, the yarn storage mechanism, the second yarn separating rack and the reeling device are arranged on the frame; the transmission rollers are arranged between the unreeling device and the reeling device. The yarn printing and dyeing automatic cleaning mechanism can automatically achieve the steps of automatic yarn unreeling, cleaning, drying, reeling and the like, thereby being high in automation degree and working efficiency, and by means of the yarn storage mechanism, can temporarily store cleaned yarn reels to achieve continuous production, to avoid downtime and further to improve the production efficiency.