Melatonin is a hormone that helps regulate sleep and wake cycles. It is also used as a treatment for insomnia, jet lag, and other sleep disorders.