Root nodule symbiosis (RNS) between legumes and rhizobia is a major source of nitrogen in agricultural systems. Effective symbiosis requires precise regulation of plant defense responses. The role of the defense hormone jasmonic acid (JA) in the immune response has been extensively studied. Current research shows that JA can play either a positive or negative regulatory role in RNS depending on its concentration, but the molecular mechanisms remain to be elucidated. In this study, we found that inoculation with the rhizobia Sm1021 induces the JA pathway in Medicago truncatula, and blocking the JA pathway significantly reduces the number of infection threads. Mutations in the MtMYC2 gene, which encodes a JA signaling master transcription factor, significantly inhibited rhizobia infection, terminal differentiation, and symbiotic cell formation. Combining RNA sequencing and chromatin immunoprecipitation sequencing, we discovered that MtMYC2 regulates the expression of nodule-specific MtDNF2, MtNAD1, and MtSymCRK to suppress host defense, while it activates MtDNF1 expression to regulate the maturation of MtNCRs, which in turn promotes bacteroid formation. More importantly, MtMYC2 participates in symbiotic signal transduction by promoting the expression of MtIPD3. Notably, the MtMYC2-MtIPD3 transcriptional regulatory module is specifically present in legumes, and the Mtmyc2 mutants are susceptible to the infection by the pathogen Rhizoctonia solani. Collectively, these findings reveal the molecular mechanisms of how the JA pathway regulates RNS, broadening our understanding of the roles of JA in plant-microbe interactions.