What is the role of melatonin in human body?

It regulates your sleep cycles.