Microbial glycans, such as bacterial peptidoglycans, fungal chitin or rhizobacterial Nod factors (NFs), are important signatures for plant immune activation or for the establishment of beneficial symbioses. Plant lysin motif (LysM) domain proteins serve as modules mediating recognition of these different N-acetylglucosamine (GIcNAc)-containing ligands, suggesting that this class of proteins evolved from an ancient sensor for GIcNAc. During early plant evolution, these glycans probably served as immunogenic patterns activating LysM protein receptor-mediated plant immunity and stopping microbial infection. The biochemical potential of plant LysM proteins for sensing microbial GIcNAc-containing glycans has probably since favored the evolution of receptors facilitating microbial infection and symbiosis.