We have obtained the creation and annihilation operators directly from the eigenfunction for the general deformed morse potential in one-dimensional Klein–Gordon equation with equally mixed vector and scalar potentials and also in the Schrödinger equation, we show that these operators satisfy the commutation relation of the SU(1, 1) group. Then we have expressed the Hamiltonian in terms of the su(1, 1) algebra.