These results suggest that CLEC5A is a promising therapeutic target to control neuroinflammation during viral encephalitis. Here, CLEC5A is linked to viral encephalitis.