The adrenal glands are small, triangular-shaped glands located on top of each kidney, playing a crucial role in the body's response to stress by producing hormones such as cortisol and adrenaline. They also regulate metabolism, immune system, blood pressure, and other essential functions through the secretion of various hormones.