The mutton quality of Chinese Tan lambs (Ovis aries) has declined as feeding patterns have shifted from pasturing to pen rationing. Mutton quality is affected by fatty acids, and rumen microorganisms play a role in the synthesis of short-chain fatty acids, long-chain fatty acids, and conjugated linoleic acids. We used 16S rDNA sequencing to analyze the effects of two feeding patterns on the rumen bacteria of Tan lambs. In a randomized block design with 24 newborn Tan lambs, 12 lambs were fed by ewes in pasture and 12 were fed by pen-fed ewes. At 2 months, the biceps femoris and the longissimus dorsi were analyzed by gas chromatography for intramuscular fat content and fatty acid composition, and DNA in the rumen contents was extracted and used to analyze the structure of the bacterial community. Different feeding patterns had no significant effect on the intramuscular fat content of the biceps femoris and longissimus dorsi of the lambs, but there was a significant effect on fatty acid composition. Rumen bacteria were significantly more diverse in the pasture group than in the pen-ration group (P < 0.01). Twenty-one phyla were identified in the pasture group, and 14 phyla were identified in the pen-ration group. The dominant phyla in the pasture group were Bacteroidetes and Fibrobacteres; the dominant phyla in the pen-ration group were Proteobacteria and Bacteroidetes. The relative abundance of Proteobacteria was significantly higher in the pen-ration group than in the pasture group (P < 0.01). Diversity at the genus level was also higher in the pasture group, with 176 genera in the pasture group and 113 genera in the pen-ration group. The dominant genera in the pasture group were Prevotella_1, Rikenellaceae_RC9_gut_group, and Bacteroidales_BS11_gut_group_Na; the dominant genera in the pen-ration group were Prevotella_1, Prevotella_7, Succinivibrionaceae_UCG-001, and Succinivibrionaceae_NA.