Esophagitis can also be caused by an infection that can develop in individuals with weakened immune systems, such as caused by HIV or certain medications such as corticosteroids. The infection can be caused by viruses, including herpes and cytomegalovirus, and fungi or yeast, especially Candida infections.

