Plants defend against pathogens through various defense mechanisms such as physical barriers like the plant cuticle and cell walls, chemical defenses like production of antimicrobial compounds, and the activation of defense-related genes to mount a systemic response against pathogens. Additionally, plants also have mechanisms like producing reactive oxygen species and phytoalexins to protect themselves from pathogens.