The invention provides a cloth printing and dyeing device. The cloth printing and dyeing device is used for dyeing cloth and comprises a first box, a second box, a cloth rolling roller set, a first cloth roller, a second cloth roller, transitional rollers and a communicating pipe. The first box is arranged above the second box, the body wall of the first box comprises a first outer shell, a first inner shell and a first heating cavity between the first outer shell and the first inner shell, and the cloth rolling roller set is arranged in the first box. The body wall of the second box comprises a second outer shell, a second inner shell and a second heating cavity between the second outer shell and the second inner shell, a plurality of heating pieces are arranged in the second heating cavity, and a plurality of cloth winding rollers are arranged in the second box and used for changing the direction of cloth. The first heating cavity is communicated with the interior of the second box through the communicating pipe. Exhaust holes are formed in the first outer shell and are away from the port, located in the first heating cavity, of the communicating pipe. The cloth printing and dyeing device is simple and practical in structure, uniform in dyeing and firm, and the purpose of saving energy is achieved by recycling heat.