A group of disorders that affect the thyroid gland, leading to overproduction or underproduction of thyroid hormones.