Hypersensitivity pneumonitis (HP) is an immune-mediated interstitial lung disease (ILD) in sensitized individuals caused by a large variety of inhaled antigens. The clinical form of acute HP is often misdiagnosed, while the chronic form, especially the chronic fibrotic HP, is difficult to differentiate from other fibrotic ILDs. The present guideline for the diagnosis and treatment of HP replaces the former German recommendations for the diagnosis of HP from 2007 and is amended explicitly by the issue of the chronic fibrotic form, as well as by treatment recommendations for the first time. The evidence was discussed by a multidisciplinary committee of experts. Then, recommendations were formulated for twelve questions on important issues of diagnosis and treatment strategies. Recently published national and international guidelines for ILDs and HP were considered. Detailed background information on HP is useful for a deeper insight into HP and the handling of the guideline.