Subacute thyroiditis is an inflammation of the thyroid gland that typically develops after a viral infection and causes pain, swelling, and temporary changes in thyroid hormone levels. It usually resolves on its own over several weeks to months with symptomatic treatment.