Etanercept is a biologic medication classified as a tumor necrosis factor (TNF) inhibitor. It is primarily used to treat autoimmune conditions by inhibiting the activity of TNF, a substance in the body that causes inflammation and can lead to immune system diseases.