Cortisol is a hormone produced in the adrenal glands as a response to stimulation from the pituitary gland. Abnormal levels of cortisol have been seen in several diseases such as depression and multiple sclerosis.