Hopf bifurcation of a class of Silnikov equation is studied in the paper. The condition that Hopf bifurcation occurs for the controlled system is derived theoretically. The direction of Hopf bifurcation and the stability of the periodic solutions are obtained. The control of amplitude of the limit cycle is established by the nonlinear controller. The validity of the control method proposed in the paper is verified by the numerical simulation.