Melatonin is affected by sunlight. As the sunlight decreases at the end of the day the optic nerve in our eyes sends a signal to the SCN through a nerve pathway. The SCN sends signals to the pineal gland to start producing melatonin. Melatonin levels are at their highest in the middle of the night and start to reduce in the morning when sunlight appears.