Former food products (FFPs) from the food industry represent a sustainable alternative to cereals in pig nutrition. While their nutritional value has been documented, their impact on gut microbial ecology and its potential relationship with carcass traits remains unclear. This study evaluated the effects of increasing dietary inclusion of FFPs (0%, 20%, 40%) on fecal microbiota composition in heavy pigs and explored associations with performance and carcass characteristics. Thirty‑six pigs were fed iso‑caloric and iso‑proteic diets containing 0% (Control), 20% (FFP20), or 40% (FFP40) FFPs in the diets of grower (20‑60 kg BW), finisher I (60‑100 kg BW) and finisher II (100‑140 kg BW) pigs. Growth performance and carcass composition (dual‑energy X‑ray absorptiometry) were recorded. Fecal samples (n = 36) were analyzed by whole‑metagenome sequencing, and the differential gene expression (DEG) analysis of jejunum mucosa was performed with RNA‑sequencing. Feed efficiency improved linearly with increasing FFP inclusion (up to +9% in the finisher II period; P < 0.001), while carcass fat decreased (−6%; P ≤ 0.009) and protein content increased (+3%; P < 0.001) compared with Control pigs. Alpha diversity indexes (Observed ASVs, Shannon, Evenness‑Simpson) were not affected by diet (P > 0.10), indicating preserved microbial richness and evenness. However, beta diversity (Bray–Curtis) showed a tendency toward dietary clus
tering (Adonis P = 0.079), with FFP20 exhibiting the most distinct microbial profile. Linear discriminant analysis effect size (LDA > 3) identified 33 discriminant taxa. FFP20 showed the highest number of microbial markers, mainly belonging to the class Erysipelotrichia (including Turicibacteraceae and Turicibacter bilis). FFP40 was characterized by enrichment of Romboutsia (including Romboutsia timonensis) and members of Chlamydiaceae, whereas Control pigs were enriched in Bifidobacteriaceae (genus Pseudoscardovia) and Megasphaera. Core microbiota analysis (≥0.1% relative abundance; ≥80% prevalence) identified 21 shared taxa between Control and FFP20, while FFP40 exhibited a reduced core (16 taxa), suggesting dose‑dependent restructuring of stable microbial populations. Also, correlation analysis revealed a strong positive association between lean meat percentage and Peptostreptococcaceae and Romboutsia timonensis, whereas belly fat positively correlated with Bifidobacteriaceae. RNA‑sequencing of jejunal mucosa tissue revealed a small number of significant DEGs (adj. P < 0.05, |log2 fold change| > 1). Therefore, gene set enrichment analysis was performed using ranked log2 fold change values. Comparison of the FFP40 and Control showed enrichment of gene sets associated with the cell cycle, lipid, alcohol, and sterol biosynthetic processes (adj. P < 0.05). Additionally, comparison of the FFP20
diet with the Control revealed enrichment of gene sets involved in lipid biosynthetic processes, regulation of the immune system and RNA processing (adj. P < 0.05). Direct comparison between the FFP40 and FFP20 groups further identified enrichment of cell cycle and carboxylic acid catabolic processes (adj. P < 0.05). In conclusion, dietary FFP inclusion modulated gut microbial community structure without affecting overall diversity and was associated with improved feed efficiency and reduced carcass fat deposition. Accordingly, the enrichment of the gene sets involved in lipid processes was identified in jejunal mucosa with inclusion of FFPs. Moderate inclusion (20%) induced the most pronounced microbial differentiation, while higher inclusion (40%) reduced core microbiota stability