Solving the s-wave Dirac equation for the Eckart potential with spin and pseudospin symmetry by using the supersymmetric quantum mechanics approach and function analysis method, we obtain the exact energy equation and corresponding two-component spinor wavefunctions. The restriction conditions of existing bound states are analysed.