The differences in specific microbial lanscapes between the two AEs indicate that the gut microbiota may be an effective marker for the differential diagnosis of anti-NMDAR encephalitis and anti-LGI1 encephalitis. Here, LGI1 is linked to viral encephalitis.