Mitochondria and chloroplasts are major sources of free radical generation in living organisms. Because of this, these organelles require strong protection from free radicals and associated oxidative stress. Melatonin is a potent free radical scavenger and antioxidant. It meets the criteria as a mitochondrial and chloroplast antioxidant. Evidence has emerged to show that both mitochondria and chloroplasts may have the capacity to synthesize and metabolize melatonin. The activity of arylalkylamine N-acetyltransferase (AANAT), the reported rate-limiting enzyme in melatonin synthesis, has been identified in mitochondria, and high levels of melatonin have also been found in this organelle. From an evolutionary point of view, the precursor of mitochondria probably is the purple nonsulfur bacterium, particularly, Rhodospirillum rubrum, and chloroplasts are probably the descendents of cyanobacteria. These bacterial species were endosymbionts of host proto-eukaryotes and gradually transformed into cellular organelles, that is, mitochondria and chloroplasts, respectively, thereby giving rise to eukaryotic cells. Of special importance, both purple nonsulfur bacteria (R. rubrum) and cyanobacteria synthesize melatonin. The enzyme activities required for melatonin synthesis have also been detected in these primitive species. It is our hypothesis that mitochondria and chloroplasts are the original sites of melatonin synthesis in the early stage of endosymbiotic organisms; this synthetic capacity was carried into host eukaryotes by the above-mentioned bacteria. Moreover, their melatonin biosynthetic capacities have been preserved during evolution. In most, if not in all cells, mitochondria and chloroplasts may continue to be the primary sites of melatonin generation. Melatonin production in other cellular compartments may have derived from mitochondria and chloroplasts. On the basis of this hypothesis, it is also possible to explain why plants typically have higher melatonin levels than do animals. In plants, both chloroplasts and mitochondria likely synthesize melatonin, while animal cells contain only mitochondria. The high levels of melatonin produced by mitochondria and chloroplasts are used to protect these important cellular organelles against oxidative stress and preserve their physiological functions. The superior beneficial effects of melatonin in both mitochondria and chloroplasts have been frequently reported.