Iodine is necessary for the production of thyroid hormones, and iodine deficiency can result in hypothyroidism.