Cortisol is a hormone produced by the adrenal gland in response to stress. Its main function is to increase the level of glucose in the blood. It also suppresses the immune system.