The retina sends these signals to a brain region known as the hypothalamus, which passes them on to the pineal gland. The more light your brain detects, the less melatonin it produces, and vice versa.