An overview of the important thermal and chemical processes in “photon-dominated regions” or “photo-dissociation regions” (PDRs) and “X-ray dominated regions” (XDRs) is presented. Applications of the models are shown to observations of the ultra-luminous infrared galaxy Mrk 231, and the starburst galaxy M 82.