The adrenal glands produce hormones that are essential for stress response and regulation of metabolism. They secrete cortisol, which helps the body respond to stress, and aldosterone, which regulates electrolyte balance and blood pressure.