In conclusion, the GC* and AG* haplotypes of rs1800795 (− 174 G > C) and rs1800797 (− 597 A > G) variants in the IL-6 gene may serve as useful genetic markers to screen for high-risk SARS-CoV-2 infection in the Moroccan population, providing valuable insights into the genetic determinants of COVID-19 severity. This evidence concerns the gene IL6 and COVID-19.