Bacteria and archaea use distinct pathways for salvaging exogenous cobinamide (Cbi), a precursor of adenosylcobalamin (coenzyme B(12)). The bacterial pathway depends on a bifunctional enzyme with kinase and guanylyltransferase activities (CobP in aerobic adenosylcobalamin synthesizers) to convert adenosylcobinamide (AdoCbi) to AdoCbi-guanosine diphosphate (AdoCbi-GDP) via an AdoCbi-phosphate intermediate. Archaea lack CobP, and use a different strategy for the synthesis of AdoCbi-GDP. Archaea cleave off the aminopropanol group of AdoCbi using the CbiZ AdoCbi amidohydrolase to generate adenosylcobyric acid, which is converted to AdoCbi-phosphate by the CbiB synthetase, and to AdoCbi-GDP by the CobY guanylyltransferase. We report phylogenetic, in vivo and in vitro evidence that the genome of Rhodobacter sphaeroides encodes functional enzymes for Cbi salvaging systems of both bacterial and archaeal origins. Products of the reactions were identified by high-performance liquid chromatography, UV-visible spectroscopy and bioassay. The cbiZ genes of several bacteria and archaea restored Cbi salvaging in a strain of Salmonella enterica unable to salvage Cbi. Phylogenetic data led us to conclude that CbiZ is an enzyme of archaeal origin that was horizontally transferred to bacteria. Reasons why some bacteria may contain both types of Cbi salvaging systems are discussed.