To identify gut microbiota biomarkers associated with KRAS mutations and more accurately predict KRAS mutation status in CRC patients, we developed an RF prediction model based on KRAS mutation-associated gut microbiota. Here, KRAS is linked to colorectal carcinoma.