An endocrinologist is a medical doctor who specializes in endocrinology, the branch of medicine that deals with the endocrine system. The endocrine system is a network of glands (such as the thyroid, pituitary, adrenal glands, pancreas) that produce and secrete hormones, which regulate various bodily functions.