The present study revealed an independent protective association between decreased frequency of G allele in IL-1β rs16944 and Anti-NMDAR encephalitis. This evidence concerns the gene IL1B and viral encephalitis.