The aim of the present study was to investigate the mechanism by which hydrogen sulfide (HS) inhalation protects against oxidative stress in rats with cotton smoke inhalation-induced lung injury. A total of 24 male Sprague-Dawley rats were separated randomly into four groups, which included the control, HS, smoke and smoke + HS groups. A rat model of cotton smoke inhalation-induced lung injury was established following inhalation of 30% oxygen for 6 h. In addition, HS (80 ppm) was inhaled by the rats in the HS and smoke + HS groups for 6 h following smoke or sham-smoke inhalation. Enzyme-linked immunosorbent assays were performed to measure various indices in the rat lung homogenate, while the levels of nuclear factor (NF)-κBp65 in the lung tissue of the rats were determined and semiquantitatively analyzed using immunohistochemistry. In addition, quantitative fluorescence polymerase chain reaction was employed to detect the mRNA expression of inducible nitric oxide synthase (iNOS) in the rat lung tissue. The concentrations of malondialdehyde (MDA), nitric oxide (NO), inducible iNOS and NF-κBp65, as well as the sum-integrated optical density of NF-κBp65 and the relative mRNA expression of iNOS, in the rat lung tissue from the smoke + HS group were significantly lower when compared with the smoke group. The concentrations of MDA, NO, iNOS and NF-κBp65 in the HS group were comparable to that of the control group. Therefore, inhalation of 80 ppm HS may reduce iNOS mRNA transcription and the production of iNOS and NO in rats by inhibiting NF-κBp65 activation, subsequently decreasing oxidative stress and cotton smoke inhalation-induced lung injury.