In this study, pre-colonization of B. velezensis could activate the upregulation of lignin synthesis genes PAL, C4H, CAD, and 4CL, indicating that inoculation with GJ-7 increases lignin synthesis in P. notoginseng to resist infection of M. hapla. Here, CAD is linked to infection.