To ensure the accuracy and stability of intelligent-vehicle-trajectory tracking, a robust trajectory-tracking control strategy based on generalized Hamilton theory is proposed. Firstly, a dynamic Hamilton dissipative controller (DHDC) and trajectory-tracking Hamilton dissipative controller (TTHDC) were designed based on the established vehicle-dynamics control system and trajectory-tracking control system using the orthogonal decomposition method and control-switching method. Next, the feedback-dissipative Hamilton realizations of the two systems were obtained separately to ensure the convergence of the system. Secondly, based on the dissipative Hamilton system designed by TTHDC, a generalized Hamilton robust controller (GHRC) was designed. Finally, the co-simulation of Carsim and MATLAB/Simulink was used to verify the effectiveness of the three control algorithms. The simulation results show that DHDC and TTHDC can achieve self-stabilizing control of vehicles and enable certain control effects for the trajectory tracking of vehicles. The GHRC solves the problems of low tracking accuracy and poor stability of DHDC and TTHDC. Compared with the sliding mode controller (SMC) and linear quadratic regulator (LQR) controller, the GHRC can reduce the lateral error by 84.44% and the root mean square error (RMSE) by 83.92%, which effectively improves the accuracy and robustness of vehicle-trajectory tracking.