Cortisol is a steroid hormone produced by the adrenal glands, which are located on top of the kidneys. It plays a crucial role in the bodyâs stress response, metabolism, immune function, and regulation of blood sugar levels. Known as the "stress hormone," cortisol levels typically rise in response to stress and return to baseline when the stressor is removed.