Cortisol can be your best friend or your sworn enemy. The steroid hormone, which is produced by your adrenal glands, plays a role in the fight-or-flight response -- the physiological loop that gears your body up to fight against danger or run for your life.