If large grating ruling machine has yaw angle error, it will directly affect the quality of the ruling grating wave-front. First, the mapping relation between yaw angle error and wave-front quality in Littrow form is obtained through calculation. Secondly, the working principle of correcting the yaw angle with double piezoelectric actuators is discussed, the yaw angle measurement optical path is designed, and the yaw angle correction capability of the workbench with this structure is measured. Finally, the ruling experiments were carried out on the workbench using the above structure. Experiment results indicate that on the grating ruling machine with 400 500 grating ruling capability, using double piezoelectric actuators to correct the yaw angle error of the workbench, the correction requirement for travel range of 5 m and angle range of 2 can be achieved. The experiment results show that the yaw angle of the workbench is reduced from 0.42 to 0.02 after yaw angle error correction; the yaw angle error is decreased by 95.24% compared with that before correction, which satisfies the requirement of the yaw angle correction accuracy of the workbench and improves the quality of the grating wave-front. The experiment results provide a theoretical and technical support for ruling large and high-precision gratings.