Phenylpropanoid metabolism represents an important metabolic pathway from which originates a wide number of secondary metabolites derived from phenylalanine or tyrosine, such as flavonoids and isoflavonoids, crucial molecules in plants implicated in a large number of biological processes. Therefore, various types of interconnection exist between different aspects of nitrogen metabolism and the biosynthesis of these compounds. For legumes, flavonoids and isoflavonoids are postulated to play pivotal roles in adaptation to their biological environments, both as defensive compounds (phytoalexins) and as chemical signals in symbiotic nitrogen fixation with rhizobia. In this paper, we summarize the recent progress made in the characterization of flavonoid and isoflavonoid biosynthetic pathways in the model legume Lotus japonicus (Regel) Larsen under different abiotic stress situations, such as drought, the impairment of photorespiration and UV-B irradiation. Emphasis is placed on results obtained using photorespiratory mutants deficient in glutamine synthetase. The results provide different types of evidence showing that an enhancement of isoflavonoid compared to standard flavonol metabolism frequently occurs in Lotus under abiotic stress conditions. The advance produced in the analysis of isoflavonoid regulatory proteins by the use of co-expression networks, particularly MYB transcription factors, is also described. The results obtained in Lotus japonicus plants can be also extrapolated to other cultivated legume species, such as soybean, of extraordinary agronomic importance with a high impact in feeding, oil production and human health.