We report, for the first time, the role of YKL-40 in anti-NMDAR encephalitis. This evidence concerns the gene CHI3L1 and viral encephalitis.