The phenylalanine ammonia-lyase (PAL) enzyme catalyses the conversion of l-phenylalanine to trans-cinnamic acid. This conversion is the first step in phenylpropanoid biosynthesis in plants. The phenylpropanoid pathway produces diverse plant metabolites that play essential roles in various processes, including structural support and defence. Previous studies have shown that mutation of the PAL genes enhances disease susceptibility. Here, we investigated the functions of the rice PAL genes using 2-aminoindan-2-phosphonic acid (AIP), a strong competitive inhibitor of PAL enzymes. We show that the application of AIP can significantly reduce the PAL activity of rice crude protein extracts invitro. However, when AIP was applied to intact rice plants, it reduced infection of the root-knot nematode Meloidogyne graminicola. RNA-seq showed that AIP treatment resulted in a rapid but transient upregulation of defence-related genes in roots. Moreover, targeted metabolomics demonstrated higher levels of jasmonates and antimicrobial flavonoids and diterpenoids accumulating after AIP treatment. Furthermore, chemical inhibition of the jasmonate pathway abolished the effect of AIP on nematode infection. Our results show that disturbance of the phenylpropanoid pathway by the PAL inhibitor AIP induces defence in rice against M. graminicola by activating jasmonate-mediated defence.