it opens up the brains recptors, so it can use it's own melatonin more efficiantly. does that help?
here is a copy:
DRUG CLASS AND MECHANISM: Ramelteon is an oral drug that promotes falling asleep and is used for treating
insomnia. It acts by stimulating receptors for melatonin in the brain. Melatonin and its receptors control the circadian rhythm of the body that, in turn, controls the sleep/wake cycle. Unlike many drugs used for treating insomnia, ramelteon is not addictive, and it is not a controlled substance. Ramelteon also does not cause withdrawal symptoms or rebound insomnia when it is stopped. Ramelteon was approved by the FDA in July, 1995.
http://www.medicinenet.com/rozerem/article.htm
still looking for it's use in children.