In order to improve the handling stability of four-wheel steering (4WS) cars, a two-degree-of-freedom 4WS vehicle dynamics model is constructed here, and the motion differential equation of the system model is established. Based on the quadratic optimal control theory, the optimal control of 4WS system is proposed in this paper. When running at low speed and high speed, through yaw rate feedback control, state feedback control, and optimal control, the 4WS cars are controlled based on yaw rate and centroid cornering angle with MATLAB/Simulink simulation. The result indicates that 4WS control based on the optimal control can improve the displacement of the cars. And, the optimal control of 4WS proposed in this paper can eliminate centroid cornering angle completely compared with other two traditional optimal control methods. Besides, the optimal control enjoys faster response speed and no overshoot happens. In conclusion, the optimal control method proposed in the paper represents better stability, moving track and stability, thereby further enhancing the handling property of cars.