The presence of homozygote HLA‐B*35 (OR = 0.21, p‐value = 0.042) and HLA‐DRB1*11 (OR = 0.35, p‐value = 0.009) in patients with a moderate form of COVID‐19 was significantly higher compared to those with a severe form of the disease. The gene discussed is HLA-B; the disease is COVID-19.