The invention discloses a two-time torsion extrusion device and method with a variable-section cavity for grain refining. The device comprises a male die part, a transmission mechanism, a power mechanism and a female die part, wherein the male die part is matched with the female die part, and the power mechanism is connected with the transmission mechanism; and the male die part comprises an upperdie plate and an upper die, the female die part comprises an upper cylinder, an upper plate and a main die, the upper die plate is arranged on the upper die, the upper die is matched with the upper cylinder and enters the upper cylinder and the main die in a working state under the action of a hydraulic press sliding block, the upper cylinder is arranged on the upper plate, the main die is arranged below the upper plate and connected with the upper cylinder, and the upper die enters the upper cylinder in the working process. According to the two-time torsion extrusion device and method, by changing the shape of the section of the inner cavity of the rotating die, the die with the variable-section cavity is rotated during extrusion, a material has both extrusion deformation and shearing deformation brought by die rotation, severe plastic deformation is realized, forming force is small, deformation efficiency is high, and a good grain refining effect can be achieved.