Melatonin is remarkably functionally diverse with actions as a free radical scavenger and antioxidant, circadian rhythm regulator, antiinflammatory and immunoregulating molecule, and as an oncostatic agent. We hypothesize that the initial and primary function of melatonin in photosynthetic cyanobacteria, which appeared on Earth 3.5-3.2 billion years ago, was as an antioxidant. The evolution of melatonin as an antioxidant by this organism was necessary as photosynthesis is associated with the generation of toxic-free radicals. The other secondary functions of melatonin came about much later in evolution. We also surmise that mitochondria and chloroplasts may be primary sites of melatonin synthesis in all eukaryotic cells that possess these organelles. This prediction is made on the basis that mitochondria and chloroplasts of eukaryotes developed from purple nonsulfur bacteria (which also produce melatonin) and cyanobacteria when they were engulfed by early eukaryotes. Thus, we speculate that the melatoninsynthesizing actions of the engulfed bacteria were retained when these organelles became mitochondria and chloroplasts, respectively. That mitochondria are likely sites of melatonin formation is supported by the observation that this organelle contains high levels of melatonin that are not impacted by blood melatonin concentrations. Melatonin has a remarkable array of means by which it thwarts oxidative damage. It, as well as its metabolites, is differentially effective in scavenging a variety of reactive oxygen and reactive nitrogen species. Moreover, melatonin and its metabolites modulate a large number of antioxidative and pro-oxidative enzymes, leading to a reduction in oxidative damage. The actions of melatonin on radical metabolizing/producing enzymes may be mediated by the Keap1-Nrf2-ARE pathway. Beyond its direct free radical scavenging and indirect antioxidant effects, melatonin has a variety of physiological and metabolic advantages that may enhance its ability to limit oxidative stress.