We propose a scheme to generate strong squeezing of a mechanical oscillator in an optomechanical system through Lyapunov control. Frequency modulation of the mechanical oscillator is designed via Lyapunov control. We show that the momentum variance of the mechanical oscillator decreases with time ev