Two bacterial 16S rRNA gene clone libraries were constructed from the forestomach of alpacas and sheep fed alfalfa. After the amplification using the universal 16S rRNA gene primers, equal quantities of PCR products from the same species were mixed and used to construct the two libraries. Sequence analysis showed that the 60 clones from alpacas were divided into 27 phylotypes with 25% clones affiliated with Eubacterium sp. F1. The 60 clones from sheep were divided into 21 phylotypes with 7 phylotypes affiliated with Prevotella ruminicola (40% clones). Clones closely related to Clostridium proteoclasticum, Eubacterium sp. F1, Clostridium cellobioparum, Mogibacterium neglectum, Eubacterium ventriosum, Clostridiaceae bacterium WN011, Clostridium coccoides, Clostridium orbiscindens, Eubacterium sp. F1, Cytophaga sp. Dex80-37, Treponema bryantii and Pelotomaculum sp. FP were only found in the forestomach of alpacas, and those to Anaerovorax odorimutans, Treponema zioleckii, Bifidobacterium indicum, Paludibacter propionicigenes, Paraprevotella clara, Eubacterium siraeum, Desulfotomaculum sp. CYP1, Clostridium bolteae, Clostridium termitidis and Clostridiaceae bacterium DJF_LS40 only in the rumen of sheep. Quantitative real-time PCR revealed that the forestomach of alpacas had significantly lower density of bacteria, with bacterial 16S rRNA gene copies (6.89 [Log10 (copies per gram of wet weight)]), than that of sheep (7.71, P < 0.01). The two clone libraries also appeared different in Shannon index (library from alpacas 3.30 and from sheep 3.04). Our results showed that there were apparent differences in the bacterial diversity and abundance in the forestomach between alpacas and sheep.