In this study, we systematically investigated the impact of aging‐induced alterations in the gut microbiota and metabolites on the susceptibility and severity of bacterial infection in aged hosts and found that the microbial‐derived metabolite, apigenin (Api), was decreased in both aged mice and humans. This evidence concerns the gene SERPINF2 and bacterial infectious disease.