Adrenocorticotropic hormone (ACTH) stimulates the adrenal glands to secrete hormones such as cortisol and androgens, and regulates this process.