Line lists for the sulphur-containing molecules SH (the mercapto radical) and NS are computed as part of the ExoMol project. These line lists consider transitions within the X 2 Π ground state for 32 SH, 33 SH, 34 SH and 32 SD, and 14 N 32 S, 14 N 33 S, 14 N 34 S, 14 N 36 S and 15 N 32 S. Ab initio potential energy (PEC) and spin-orbit coupling (SOC) curves are computed and then improved by fitting to experimentally observed transitions. Fully ab initio dipole moment curves (DMCs) computed at high level of theory are used to produce the final line lists. For SH, our fit gives a root-meansquare (rms) error of 0.03 cm −1 between the observed (v max = 4, J max = 34.5) and calculated transitions wavenumbers; this is extrapolated such that all X 2 Π rotationalvibrational-electronic (rovibronic) bound states are considered. For 32 SH the resulting line list contains about 81 000 transitions and 2 300 rovibronic states, considering levels up to v max = 14 and J max = 60.5. For NS the refinement used a combination of experimentally determined frequencies and energy levels and led to an rms fitting error of 0.002 cm −1 . Each NS calculated line list includes around 2.8 million transitions and 31 000 rovibronic states with a vibrational range up to v = 53 and rotational range to J = 235.5, which covers up to 23 000 cm −1 . Both line lists should be complete for temperatures up to 5000 K. Example spectra simulated using this line list are shown and comparisons made to the existing data in the CDMS database. The line lists are available from the CDS (http://cdsarc.u-strasbg.fr) and ExoMol (www.exomol.com) data bases.