During the last few decades, the incidence of sleep-onset insomnia, due to delay of circadian phase, has increased substantially among adolescents all over the world. We wanted to investigate whether a small dose of melatonin given daily, administered in the afternoon, could advance the sleep timing in teenagers. Twenty-one students, aged 14-19 yrs, with sleep-onset difficulties during school weeks were recruited. The study was a randomized, double blind, placebo (PL)-controlled crossover trial, lasting 5 wks. During the first 6 d in wks 2 and 4, the students received either PL or melatonin (1 mg) capsules between 16:30 and 18:00 h. During the first 6 d of wk 5, all students received melatonin. Wks 1 and 3 were capsule-free. In the last evening of each week and the following morning, the students produced saliva samples at home for later melatonin analysis. The samples were produced the same time each week, as late as possible in the evening and as early as possible in the morning. Both the student and one parent received automatic mobile text messages 15 min before saliva sampling times and capsule intake at agreed times. Diaries with registration of presumed sleep, subjective sleepiness during the day (Karolinska Sleepiness Scale, KSS) and times for capsule intake and saliva samplings were completed each day. Primary analysis over 5 wks gave significant results for melatonin, sleep and KSS. Post hoc analysis showed that reported sleep-onset times were advanced after melatonin school weeks compared with PL school weeks (p < .005) and that sleep length was longer (p < .05). After the last melatonin school week, the students fell asleep 68 min earlier and slept 62 min longer each night compared with the baseline week. Morning melatonin values in saliva diminished compared with PL (p < .001) and evening values increased (p < .001), indicating a possible sleep phase advance. Compared with PL school weeks, the students reported less wake up (p < .05), less school daytime sleepiness (p < .05) and increased evening sleepiness (p < .005) during melatonin weeks. We conclude that a small dose of melatonin given daily, administered in the afternoon, could advance the sleep timing and make the students more alert during school days even if they continued their often irregular sleep habits during weekends.