The S dopants in S–N co-doped ZnO contribute to easier doping and p-type conductivity, as concluded by experiment and calculations.