Ab-initio calculations for the electronic and optical properties of single-layer (SL) tungsten disulfide (WS 2 ) in the presence of substitutional Erbium defects (Er W ) are presented, where the W atom is replaced by an Er atom. Defects usually play an important role in tailoring electronic and optical properties of semiconductors. We show that neutral Er defects lead to localized defect states (LDS) in the band structure due to the forbital states of Er, which in turn give rise to sharp transitions in in-plane and out-of-plane optical absorption spectra, α and α ⊥ . We identify the optical transitions at 3 µm, 1.5 µm, 1.2 µm, 920 nm, 780 nm, 660 nm, and 550 nm to originate from Er W defect states. In order to provide a clear description of the optical absorption spectra, we use group theory to derive the optical selection rules between LDS for both α and α ⊥ .