Hydraulic technology has been widely used in machinery manufacturing, and synchronization control is an important issue in the field of hydraulics. With the continuous development of the aerospace industry, the application of double-cylinder hydraulic technology in modern machinery is becoming more and more widespread, metallurgical equipment, metallurgical equipment, machine tools and other high-precision actuators, as well as the application of double-cylinder electro-hydraulic servo systems, are subject to inconsistent movements. As a result of non-uniform load, leakage, friction, resistance, manufacturing precision, hydraulic coil difference, structural elastic deformation, and so on. Therefore, the study of hydraulic synchronization control technology is especially important. This paper presents an immune neural network based PID controller to improve the synchronization precision of a two-cylinder hydraulic system. On the basis of the above, a new design method for the valve control cylinder of a double-cylinder forging hydraulic press is presented. In order to overcome the drawback that the conventional PID controller cannot be adaptively adjusted, the immune algorithm is adopted to monitor the operation condition of the system, and the PID parameters are dynamically adjusted on this basis, so as to improve the timeliness and effectiveness of the PID control; in the immune algorithm, the accuracy of the adjustment function construction will have a great impact on the accuracy of its construction. The validity and validity of the proposed method have been verified by simulation experiments.