The microbiota composition in the nasopharyngeal and gut regions can serve as prognostic biomarkers for predicting the severity of COVID-19.