In this study, we investigate the relativistic Klein-Gordon equation analytically for the Deng-Fan potential and Hulthen plus Eckart potential under the equal vector and scalar potential conditions. Accordingly, we obtain the energy eigenvalues of the molecular systems in different states as well as the normalized wave function in terms of the generalized Laguerre polynomials function through the NU method, which is an effective method for the exact solution of second-order linear differential equations.