Etanercept is a medication used to treat various inflammatory conditions, particularly autoimmune diseases such as rheumatoid arthritis, psoriatic arthritis, ankylosing spondylitis, and plaque psoriasis. It belongs to a class of drugs known as tumor necrosis factor (TNF) inhibitors.