Brucella, a zoonotic facultative intracellular pathogenic bacterium, poses a significant threat both to human health and to the development of the livestock industry. Alanine racemase (Alr), the enzyme responsible for alanine racemization, plays a pivotal role in regulating virulence in this bacterium. Moreover, Brucella mutants with alr gene deletions (Δalr) exhibit potential as vaccine candidates. However, the mechanisms that underlie the detrimental effects of alr knockouts on Brucella pathogenicity remain elusive. Here, initially, we conducted a bioinformatics analysis of Alr, which demonstrated a high degree of conservation of the protein within Brucella spp. Subsequent metabolomics studies unveiled alterations in amino acid pathways following deletion of the alr gene. Furthermore, alr deletion in Brucella suis S2 induced decreased resistance to stress, antibiotics, and other factors. Transmission electron microscopy of simulated macrophage intracellular infection revealed damage to the cell wall in the Δalr strain, whereas propidium iodide staining and alkaline phosphatase and lactate dehydrogenase assays demonstrated alterations in cell membrane permeability. Changes in cell wall properties were revealed by measurements of cell surface hydrophobicity and zeta potential. Finally, the diminished adhesion capacity of the Δalr strain was shown by immunofluorescence and bacterial enumeration assays. In summary, our findings indicate that the alr gene that regulates amino acid metabolism in Brucella influences the properties of the cell wall, which modulates bacterial adherence capability. This study is the first demonstration that Alr impacts virulence by modulating bacterial metabolism, thereby providing novel insights into the pathogenic mechanisms of Brucella spp.