The Hellmann potential is simply a superposition of an attractive Coulomb potential −a/r plus a Yukawa potential be−δ r /r. The generalized parametric Nikiforov–Uvarov (NU) method is used to examine the approximate analytical energy eigenvalues and two-component wave function of the Dirac equation with the Hellmann potential for arbitrary spin-orbit quantum number κ in the presence of exact spin and pseudospin (p-spin) symmetries. As a particular case, we obtain the energy eigenvalues of the pure Coulomb potential in the non-relativistic limit.