A sliding mode control method combining with fuzzy rules is proposed in this paper, the primary target of the controller is to reduce frequency fluctuation of power system caused by uncertain factors in ship navigation. The sliding mode compensation controller is designed based on fuzzy rules to approximate the unknown disturbance. the and the parameters is optimized by H∞theory. The performance of the designed controller is evaluated by utilizing simulation software. Simulation results show, compared with the traditional proportional integral controller, that the proposed sliding mode controller can effectively suppress the system frequency fluctuation, has lower frequency overshoot and faster frequency recovery. It can suppress the parameter uncertainty and the influence of disturbance on the system, which will ensure the system run stably and have good robustness performance.