Delayed puberty and persistent anestrus are major causes of gilt culling, but the functional-gene basis of the gut microbiota in this condition remains unclear. We aimed to define estrus-associated fecal microbial features at the species (metagenome-assembled genome, MAG) and functional (KEGG) levels. Rectal feces from gilts in normal estrus at 235 d (E235, n=8), age-matched anestrus at 235 d (A235, n=7), and persistent anestrus at 360 d (A360, n=8) were subjected to shotgun metagenomic sequencing. Taxonomy was assigned with Kraken2; MAGs were recovered by assembly and binning and classified with GTDB-Tk; genes were annotated with eggNOG-mapper and summarized as KEGG orthologs, pathways and modules. Differential features were identified with limma and Benjamini-Hochberg correction, and microbe-function associations were built with Spearman correlation. Alpha diversity was highest in E235, lowest in A235 and intermediate in A360 (Shannon, p=0.032). A235 displayed a low-diversity, single-taxon-dominated community enriched in Limosilactobacillus reuteri and Streptococcus alactolyticus. In total, 139 MAGs and 67 KEGG pathways differed among groups, including steroid hormone biosynthesis, which was lowest in A235, together with fatty-acid and energy-metabolism pathways. Microbial and functional community structures were strongly concordant (Mantel r=0.743; PERMANOVA R2=0.376). A MAG-based random forest classifier separated E235 from A235 with an area under the curve of 1.00. Estrus status was associated with the diversity, composition and functional-gene potential of the fecal microbiota, with steroid hormone biosynthesis and lipid/energy metabolism as candidate mechanistic pathways in gilts.