These melanins form barriers and have antimicrobial properties which prevent the spread of infection or bruising in plant tissues. Plants, which exhibit comparably high resistance to climatic stress, have been shown to possess relatively higher polyphenoloxidase levels than susceptible varieties.
An example of the formation of melanins from a simple polyphenol, tyrosine, is shown in the figure below: