The electro-hydraulic servo system has advantages such as high pressure, large flow, and high power, etc., which can also realize stepless regulation, so it is widely used in many engineering machineries. A linear model is sometimes only a simple approximation of an idealized model, but in an actual system, there may be nonlinear and transient variation characteristics in the systems. Coupling is reflected in the fact that the components or functional structures implemented by each system used for the design of hydraulic systems are not completely or independently related to each other, but affect each other. The nonlinear clearance between the actuator and the load reduces the control accuracy of the system and increases the impact, thus losing stable working conditions. In the paper, based on the nonlinear clearance problem of the electro-hydraulic servo system, a mathematical transfer model with clearance is established, and on this basis, a clearance compensation method based on the Hopfield neural network is proposed. In this way, clearance compensation can be realized by adjusting the parameters of neural network nodes, through simple and convenient operation. Finally, by setting different clearance values, the results of the step response and sine response curve before and after clearance compensation of the hydraulic system are compared, and the effectiveness of Hopfield neural network compensation clearance control is verified based on the comparison simulation results.