Based on the density functional pseudopotential method, the electronic structures and the optical properties for Ti doped ZnS are investigated in detail. The calculation results indicate that the doping of Ti widens the band gap of ZnS and the Fermi level shifts upward into the conduction band. The impurity elements form new highly localized impurity energy level at the bottom of the conduction band near the Fermi level.,.Meanwhile, blue shifts are revealed in both the imaginary part of dielectric function and the absorption spectra corresponding to the change of band gaps.