This narrative review synthesizes evidence that diet is a major driver in shaping the composition and metabolic activity of the gut microbiota, which in turn impacts host health through mechanisms like metabolite production and immune system development.