In this work, we investigated the nonlinear optical properties of monolayer MoS2 and WS2 modulated by defect engineering via chemical treatment. The results demonstrate that the two-photon luminescence (TPL) and two-photon absorption (TPA) coefficient were remarkably improved after the repair of sulfur vacancies for both monolayer MoS2 and WS2. After the chemical treatment, the nonradiative relaxation path dominant in pristine monolayer MoS2 is significantly alleviated, resulting in enhanced TPL. Our work affords an effective way to tailor the nonlinear absorption, luminescence and relaxation properties of sulfur-based two-dimensional metal dichalcogenides by defect engineering.