TSH is produced by the anterior pituitary gland, specifically by the thyrotroph cells. These cells are located in the pars distalis, the largest part of the anterior pituitary. The secretion of TSH is regulated by the hypothalamus through the release of thyrotropin-releasing hormone (TRH).