Various dâamino acids are involved in peptidoglycan and biofilm metabolism in bacteria, suggesting that these compounds are necessary for successful adaptation to environmental changes. In addition to the conventional dâalanine (dâAla) and dâglutamate, the peptidoglycan of the hyperthermophilic bacterium Thermotoga maritima contains both lâlysine (lâLys) and dâLys, but not mesoâdiaminopimelate (mesoâDpm). dâLys is an uncommon component of peptidoglycan, and its biosynthetic pathway remains unclear. In this study, we identified and characterized a novel Lys racemase (TM1597) and Dpm epimerase (TM1522) associated with the dâLys biosynthetic pathway in T. maritima. The Lys racemase had a dimeric structure containing pyridoxal 5âČâphosphate as a cofactor. Among the amino acids, it exhibited the highest racemase activity toward dâ and lâLys, and also had relatively high activity toward dâ and lâenantiomers of ornithine and Ala. The Dpm epimerase had the highest epimerization activity toward llâ and mesoâDpm, and also measurably racemized certain amino acids, including Lys. These results suggest that Lys racemase contributes to production of dâLys and dâAla for use as peptidoglycan components, and that Dpm epimerase converts llâDpm to mesoâDpm, a precursor in the lâLys biosynthetic pathway.