Utilizing a cantilever beam to tune the Bragg wavelength of a fiber grating, which was used to an actively mode-locked fiber ring laser. A wavelength tuning range of 5.240 nm is obtained with the tunable grating here. Meanwhile, we obtain a pulse train with pulse frequency of 10 GHz, pulse width of 55 ps and spectrum width of 0.017 nm at 1547.883 nm.