This paper proposed a path-following algorithm for diving control of autonomous underwater vehicle (AUV) along a predefined depth, where surge force and stern plane are only available for vehicle's 3DOF diving motion. Controller design is based on robust backstepping technique together with Lyapunov function. The whole system can be guaranteed asymptotic stability with path-following error convergence to zero, and the states are all bounded. To demonstrate the effectiveness of the proposed method, the simulation results are illustrated in this paper.