A Jacobi elliptic function expansion method is proposed to construct the exact periodic solutions of nonlinear wave equations. This new method contains the hyperbolic tangent expansion method, and the periodic solutions obtained by this method, include the shock wave solutions and the solitary wave solutions.