To investigate the fermentation characteristics, bacterial community and predicted functional profiles during the ensiling of wilted alfalfa (Medicago sativa L.). First-cutting alfalfa was harvested at the early bloom stage, wilted for 6h, and ensiled in laboratory-scale silos (1L capacity). Triplicate silos were sampled after 1, 3, 7, 15, 30 and 60days of ensiling, respectively. The bacterial communities of wilted alfalfa and silages on day3 and 60 were assessed through high throughput sequencing technology, and their functional characteristics were evaluated according to the Kyoto Encyclopedia of Genes and Genomes using Tax4Fun. After 60days of ensiling, alfalfa silage showed a moderate fermentation quality, indicated by high lactic acid (56.7gkg-1 dry matter [DM]) and acetic acid (39.4gkg-1 DM) contents, and low concentrations of butyric acid (2.12gkg-1 DM) and ammonia nitrogen (128gkg-1 total nitrogen). Lactobacillus rapidly became predominant on day3 and increased to 60.4% on day60. Results of functional prediction analyses showed that the metabolism of amino acid, energy, cofactors and vitamins were reduced, while metabolism of nucleotide and carbohydrate were increased during ensiling. Fructokinase, 1-phosphofructokinase and pyruvate kinase played important roles in producing lactic acid. The production of acetic acid may be correlated with the enhancement of 6-phosphogluconate dehydrogenase and acetyl-CoA synthetase. Knowledge regarding bacterial dynamics and their metabolic pathways during alfalfa ensiling is important for understanding the fermentation process and may contribute to the production of nutritious and stable alfalfa silage. High throughput sequencing technology combined with 16S rRNA gene-predicted functional analyses could provide a new and comprehensive insight into bacterial community dynamics and functional profiles to further improve the silage quality.