A type of hypothyroidism that results from a defect in the thyroid gland. The phenotype is Primary hypothyroidism (HP_0000832, a Human Phenotype Ontology identifier).