The compatible solute mannosylglucosylglycerate (MGG), recently identified in Petrotoga miotherma, also accumulates in Petrotoga mobilis in response to hyperosmotic conditions and supraoptimal growth temperatures. Two functionally connected genes encoding a glucosyl-3-phosphoglycerate synthase (GpgS) and an unknown glycosyltransferase (gene Pmob_1143), which we functionally characterized as a mannosylglucosyl-3-phosphoglycerate synthase and designated MggA, were identified in the genome of Ptg. mobilis. This enzyme used the product of GpgS, glucosyl-3-phosphoglycerate (GPG), as well as GDP-mannose to produce mannosylglucosyl-3-phosphoglycerate (MGPG), the phosphorylated precursor of MGG. The MGPG dephosphorylation was determined in cell extracts, and the native enzyme was partially purified and characterized. Surprisingly, a gene encoding a putative glucosylglycerate synthase (Ggs) was also identified in the genome of Ptg. mobilis, and an active Ggs capable of producing glucosylglycerate (GG) from ADP-glucose and D-glycerate was detected in cell extracts and the recombinant enzyme was characterized, as well. Since GG has never been identified in this organism nor was it a substrate for the MggA, we anticipated the existence of a nonphosphorylating pathway for MGG synthesis. We putatively identified the corresponding gene, whose product had some sequence homology with MggA, but it was not possible to recombinantly express a functional enzyme from Ptg. mobilis, which we named mannosylglucosylglycerate synthase (MggS). In turn, a homologous gene from Thermotoga maritima was successfully expressed, and the synthesis of MGG was confirmed from GDP-mannose and GG. Based on the measurements of the relevant enzyme activities in cell extracts and on the functional characterization of the key enzymes, we propose two alternative pathways for the synthesis of the rare compatible solute MGG in Ptg. mobilis.