Melatonin is an important modulator of gene expression related to plant hormones, e.g. in auxin carrier proteins, as well as in metabolism of indole-3-acetic acid (IAA), gibberellins, cytokinins, abscisic acid and ethylene. Most of the studies performed have dealt with the auxin-like activity of melatonin which, in a similar way to IAA, is able to induce growth in shoots and roots and stimulate root generation, giving rise to new lateral and adventitious roots. Melatonin is also able to delay senescence, protecting photosynthetic systems and related sub-cellular structures and processes. Also, its role in fruit ripening and post-harvest processes as a gene regulator of ethylene-related factors is relevant. Another decisive aspect is its role in the pathogen-plant interaction. Melatonin appears to act as a key molecule in the plant immune response, together with other well-known molecules such as nitric oxide and hormones, such as jasmonic acid and salicylic acid. In this sense, the discovery of elevated levels of melatonin in endophytic organisms associated with plants has thrown light on a possible novel form of communication between beneficial endophytes and host plants via melatonin.