This study investigated the causal effect of gut microbiota on critical pneumonia. Data came from a large-scale gut microbiota data set (n = 18,340) and the critical pneumonia genome-wide genotyping array (cases n = 2758 and controls n = 42,8607). Inverse variance weighting was used as the primary Mendelian randomization (MR) analysis method. Weighted median, MR-Egger, simple model, weighted model, and MR-Egger, were used to evaluate robustness. Sensitivity analysis used Cochran Q test, MR-Egger intercept test, and MR-PRESSO. For critical pneumonia, inverse variance weighting estimates suggested that Class Verrucomicrobiae (OR = 0.415; 95% CI: 0.207, 0.833; P = .013), Family Verrucomicrobiaceae (OR = 0.415; 95% CI: 0.207, 0.833; P = .013), Genus Akkermansia (OR = 0.415; 95% CI: 0.207, 0.833; P = .013), Genus LachnospiraceaeFCS020group (OR = 0.449; 95% CI: 0.230, 0.890; P = .021), Genus Parasutterella (OR = 0.466; 95% CI: 0.233, 0.929; P = .030), Genus Prevotella7 (OR = 0.645; 95% CI: 0.432, 0.960; P = .031), Order Verrucomicrobiales (OR = 0.415; 95% CI: 0.207, 0.833; P = .013), and Phylum Cyanobacteria (OR = 0.510; 95% CI: 0.272, 0.956; P = .036) had a reduced risk, while Family Enterobacteriaceae (OR = 2.746; 95% CI: 1.008, 7.474; P = .048), Genus RuminococcaceaeUCG003 (OR = 2.811; 95% CI: 1.349, 5.851; P = .006) and Order Enterobacteriales (OR = 2.746; 95% CI: 1.008, 7.474; P = .048) were associated with an increased risk. Sensitivity analyses confirmed that the aforementioned correlations were robust.