To ensure the stability of vertical mold casting machine casting, and improve the quality of casting, for which the electro-hydraulic servo system of the traditional active disturbance rejection control(ADRC) of the nonlinear function is not smooth, a new type of nonlinear function is used. For the ADRC controller, there are too many adjustment parameters and complex engineering tuning, The snake optimization(SO) algorithm is used to adaptively tune the controller parameters, and the error can also be reduced. The simulation results show that compared with the PID controller and the traditional ADRC controller, the ADRC controller based on the Ifal function and SO has a certain jitter suppression effect as well as good tracking and synchronization performance, which can effectively improve the tracking and synchronization accuracy of the dual hydraulic cylinders of the electro-hydraulic servo system.