The HPA axis, or hypothalamic-pituitary-adrenal axis, is a complex set of interactions between the hypothalamus, pituitary gland, and adrenal glands. It plays a critical role in regulating stress responses, mood, digestion, immune function, and energy storage and expenditure in the body. The pathway of the axis results in the production of cortisol.