We consider the semilinear Schrödinger equation where is asymptotically periodic and sign-changing, is asymptotically periodic in , and asymptotically linear as . Under some weak assumptions on and , we prove that the above problem has a nontrivial solution.