Melatonin is a hormone made by your own pineal gland, a pea-sized gland found just above the middle of your brain. It helps your body know when it’s time to sleep and wake up