A robust control algorithm is proposed for autopilot with nonlinear system based on known parameter boundness of the system and known boundness of input disturbance by use of the theory of Lyapunov stability An example illustrating the method described is presented for a 5000 t general carog ship The simulation shows that the controller can make the designed system guarantee the required performance