Sleep allows an overactive adrenal to rest overnight, also allowing your melatonin to give you a good night's sleep. Cortisol and melatonin are agonists, and fight for dominance. Cortisol is a stress hormone made by the adrenal gland and melatonin is an antioxidant sleep hormone produced by the pineal gland at night, in darkness.