In this paper, we study the existence of homoclinic solutions for a class of fourth order differential equations. By using variational methods, the existence and the non-existence of nontrivial homoclinic solutions are obtained, depending on a parameter.