The confirmation of Mycoplasma pneumoniae through genetic testing and serology, combined with the detection of IgLON5 antibodies, supported a diagnosis of Mycoplasma pneumoniae pneumonia complicated by autoimmune encephalitis. Here, IGLON5 is linked to Mycoplasma pneumoniae pneumonia.