The invention discloses a beating device of a toilet paper machine. The beating device comprises a base, a plurality of supporting legs are fixedly installed on the bottom side of the base, the top side of the base is fixedly provided with a plurality of supporting columns, and one sides of the supporting columns are fixedly provided with a same installation base. A first motor cavity is formed inthe installation base, a first motor is fixedly installed in the first motor cavity, a cavity is formed in the installation base, a communication hole is formed in the inner wall on the side, close to the cavity, of the first motor cavity, and the communication hole is communicated with the cavity. A rotary shaft is rotationally installed in the communication hole, the end, close to the first motor cavity, of the rotary shaft extends into the first motor cavity and is fixedly connected with an output shaft of the first motor, and the other end of the rotary shaft extends into the cavity and is fixedly provided with a cam. By means of the beating device, a stirring barrel can be rotated, pulp in the stirring barrel can be uniformly shaken, while stirring is conducted, the stirring barrel can do reciprocating motion up and down, the pulp in the stirring barrel is stirred and beaten at different depths, beating is uniform, the structure is simple, and operation is simple.