Tumor necrosis factor (TNF) inhibitors are a class of medications used to suppress the immune system by blocking the activity of TNF, a substance in the body that causes inflammation. TNF inhibitors are primarily used to treat autoimmune diseases, where the immune system mistakenly attacks the body's own tissues.