Pneumonitis is an inflammation of the lung tissue that can result from various causes, including infections, autoimmune diseases, and exposure to certain medications or environmental factors. In the context of cancer, pneumonitis is often associated with specific treatments such as radiation therapy and certain types of immunotherapy and chemotherapy.