Microbial community in in-situ waste sludge anaerobic digestion with alkalization for enhancement of nutrient recovery and energy generation was studied. Firmicutes, Proteobacteria and Bacteroidetes phylum became the majority in the microbial community, especially Firmicutes showed the predominate role in the community due to its thick cell wall structure, potential ability hydrolysis and hydrogenogenic acidogenesis. Anaerobic digestion with alkalization caused the obvious microbial diversity decrease, and over 50% of minority bacteria grew up in quantity from original sludge. Phylum of Firmicutes developed by themselves having few interactions with other bacteria, partly contributing to its rapid growth in anaerobic digestion with alkalization. The decrease of hydrocarbon degradation, and the increase of both fermentation and reductive acetogenesis in microbial community, indicating the promotion of short chain fatty acids production, especially acetic acid which is the key intermediate products for nutrient recovery and energy generation.