Because flexible robots have flexible components such as reducers, there are problems of accuracy deviation and end vibration in the process of external interference and trajectory tracking. This leads to the proposal of a Sliding Mode Control Approach Based on RBF Neural Network (SMC-RBF) parameter optimization. This method is mainly applied to reduce the end vibration and running position error of flexible robot. Firstly, the Newton-Euler method is used to establish the dynamic model of robot considering joint flexibility. At the same time, the experiment optimizes the Sliding Mode Control (SMC) method through RBF neural network. The experiments verify the control methods of the two-joint flexible robot and the six-joint flexible robot respectively. In the control of two-joint robot, the maximum tracking curve error of SMC is only about 0.25 rad under the interference of pulse signal; And the recovery time is only about 1 s. In the control of 6-joint robot, the maximum error of RBF-sliding mode control method on XYZ axis is 0.7 mm, 0.25 mm and 1.25 mm respectively; The error on three axes is smaller than that of traditional PD control method. The results demonstrate that the tracking error of the improved mode control is small, the chattering phenomenon of the robot system is weakened as well.