Compared to HCs, the anti-LGI1 encephalitis patients exhibited a decreased microbial diversity and an altered overall composition of gut microbiome. Here, LGI1 is linked to viral encephalitis.