Thyroiditis is an inflammation of the thyroid gland that can cause hypothyroidism or hyperthyroidism.