Lipoxygenase (LOX) genes are widely distributed in plants and play crucial roles in resistance to biotic and abiotic stress. Although they have been characterized in various plants, little is known about the evolution of legume LOX genes. In this study, we identified 122 full-length LOX genes in Arachis duranensis, Arachis ipaënsis, Cajanus cajan, Cicer arietinum, Glycine max, Lotus japonicus and Medicago truncatula. In total, 64 orthologous and 36 paralogous genes were identified. The full-length, polycystin-1, lipoxygenase, alpha-toxin (PLAT) and lipoxygenase domain sequences from orthologous and paralogous genes exhibited a signature of purifying selection. However, purifying selection influenced orthologues more than paralogues, indicating greater functional conservation of orthologues than paralogues. Neutrality and effective number of codons plot results showed that natural selection primarily shapes codon usage, except for C. arietinum, L. japonicas and M. truncatula LOX genes. GCG, ACG, UCG, CGG and CCG codons exhibited low relative synonymous codon usage (RSCU) values, while CCA, GGA, GCU, CUU and GUU had high RSCU values, indicating that the latter codons are strongly preferred. LOX expression patterns differed significantly between wild-type peanut and cultivated peanut infected with Aspergillus flavus, which could explain the divergent disease resistance of wild progenitor and cultivars.