It should be noted, however, that melatonin production decreases after age thirty. We can compensate for this by: Eating a balanced diet and getting more calcium. Soaking up a moderate amount of sun each day. Getting enough sleep. Avoiding stress, alcohol, tobacco, and caffeine, all of which make it harder to get a good night’s rest, depriving us of the melatonin we need.