In this paper, the existence of solutions for a class of third-order ordinary differential equation with periodic boundary value is considered. By applying the Fourier~analysis method and Leray-Schauder fixed point theorem, the existence and uniqueness of the solutions of the equation are obtained under the nonlinear term satisfies the proper growth conditions.