Inhibin is a hormone produced primarily by the gonads, specifically the Sertoli cells in males and the granulosa cells in females, that plays a crucial role in regulating reproductive processes. It functions mainly to inhibit the secretion of follicle-stimulating hormone (FSH) from the anterior pituitary gland, thereby providing feedback to the endocrine system to maintain hormonal balance during reproduction.