We show the existence of a nontrivial homoclinic orbit and subharmonic solutions for a class of second order difference equations by applying the “Mountain Pass” theorem relying on Ekeland’s variational principle and the diagonal method, and the homoclinic orbit as the limit of the subharmonics. A completely new way is provided for dealing with the e...