Phosphoribosylamine (PRA) is the first intermediate in the common pathway to purines and thiamine and is generated in bacteria by glutamine phosphoribosylpyrophosphate (PRPP) amidotransferase (EC 2.4.2.14) from PRPP and glutamine. Genetic data have indicated that multiple, non-PRPP amidotransferase mechanisms exist to generate PRA sufficient for thiamine but not purine synthesis. Here we describe the purification and identification of an activity (present in both Escherichia coli and Salmonella enterica) that synthesizes PRA from ribose 5-phosphate and glutamine/asparagine. A purification resulting in greater than a 625-fold increase in specific activity identified 8 candidate proteins. Of the candidates, overexpression of AphA (EC 3.1.3.2), a periplasmic class B nonspecific acid phosphatase, significantly increased activity in partially purified extracts. Native purification of AphA to >95% homogeneity determined that the periplasmic L-asparaginase II, AnsB (EC 3.5.1.1), co-purified with AphA and was also necessary for PRA formation. The potential physiological relevance of AphA and AnsB in contributing to thiamine biosynthesis in vivo is discussed.