Plants are constantly attacked by various pathogens in their microclimate, and during these stress conditions, they limit their growth and synthesize stressbursting chemical compounds. They respond by activating various mechanisms like defense gene expression, cell wall remodeling, production of reactive oxygen species, and antimicrobial compounds. One of the most important classes of these antimicrobial compounds is phytoalexins. Phytoalexins belong to a diverse group of secondary metabolites and their chemical structures can vary widely based on the plant species. Most of them are found in the Fabaceae and Solanaceae families. Some common classes of phytoalexins include flavonoids, terpenoids, stilbenes, and alkaloids. Some of them are synthesized via the phenylpropanoid pathway with phenylalanine ammonia- lyase as a key enzyme and some via the methylerythritol-4-phosphate pathway. These compounds function as a guardian to plants against various biotrophic, necrotrophic, or hemibiotrophic pathogens. Pisatin in peas, resveratrol in grapes, and glyceollins in soybeans are some of the popular examples of phytoalexin.