Traditionally slurry is used as source of nitrogen, phosphorous, and potassium in bio fertilizers to improve crop production. However, poorly managed slurry causes a hazardous effect to the environment by producing greenhouse gases, causing the eutrophication of water bodies, and polluting the groundwater. It has been largely reported that the microbial presence in slurry causing a diverse effect on its storage and disposal system. However, the diversity of bacterial populations in pig slurries remains largely unexplored. Here we report the bacterial diversity present in the slurry from slurry pits, and the effect of storage time on bacterial population. We collected 42 samples from three different pig slurry pits, as three replicates from each one until the 14th week. We used the 16S rRNA, Quantitative Insights Into Microbial Ecology (QIIME) and Phylogenetic Investigation of Communities by Reconstruction of Unobserved States (PICRUSt) protocols for the metagenomic downstream analysis. Taxonomic annotation using the Greengenes metagenomic database indicated that on an average 76.2% Firmicutes, 14.4% Bacteroidetes, 4.9% Proteobacteria, etc. microbial populations were present. Comparative microbial analysis showed that the population of Firmicutes decreased from the first to the 14th week, whereas the population of Bacteroidetes increased from the first to the 14th week. Through principal coordinate analysis (PCoA), (linear discriminant analysis effect size (LEfSe), and Pearson’s correlation analysis, we found microbial biomarkers according to the storage time point. All bacterial populations were well clustered according to the early, middle, and last weeks of storage. LEfSe showed that Actinobacteria, Lachnospiraceae, Ruminococcaceae, and Bacteroidia are dominantly present in first, seventh, ninth, and 14th week, respectively. Lachnospiraceae and Ruminococcaceae are ubiquitous gastrointestinal non-pathogenic bacteria. KEGG pathways, such as membrane transport, carbohydrate and amino acid metabolism, genetic replication and repair, were significant among all samples. Such a KEGG pathway may indicate the association between the host organism’s metabolic activity and the microbes present in the gastro intestinal tract (GIT).