As-grown transition metal dichalcogenides are usually chalcogen deficient and contain a high density of chalcogen vacancies, which are harmful to the electronic properties of the material. Based on the first-principles calculation, in this study the repairing of the S vacancy in the MoS 2 monolayer has been investigated by using CO, NO and NO 2 molecules. For CO and NO, the repairing process consists of the filling of the first molecule into the S vacancy and the removing of the extra O atom by the second molecule. However, for NO 2 , when the molecule is filled into the S vacancy, it is dissociated directly to form a O-doped MoS 2 monolayer. After the repairing, the C, N and O-doped MoS 2 monolayers can be obtained by the adsorption of CO, NO, and NO 2 molecules, respectively. And especially, the electronic properties of the material can be significantly improved by the N and O doping. Furthermore, according to the calculated energy, the process of the S vacancy repairing with CO, NO and NO 2 should be easily achieved at the room temperature. This study presents an promising strategy for repairing MoS 2 nanosheets and improving electronic properties of the material, which may also apply to other transition metal dichalcogenides.its implementation in a wide range of applications is hindered by its material quality and comparatively low conductivity and photoconductivity. 19,22 The phonon-limited mobility was theoretically predicted to be ~ 410 cm 2 V -1 s -1 for the MoS 2 monolayer at the room temperature. 23 However, the experimentally attainable mobility for the untreated samples is still one or two order-of-magnitude lower than the theoretical value. [24][25][26] 2D semiconductors have an extremely high surface-to-mass ratio owing to their