Immunity component of an LXG toxin-immunity module. These modules promote kin selection, mediate competition in biofilms, and drive spatial segregation of different strains, indicating that LXG toxins may help avoid warfare between strains in biofilms. Neutralizes the toxic abilities of cognate toxin YeeF upon expression in E.coli and in vitro. Monomer (PubMed:32117125). Interacts with the C-terminus of cognate toxin YeeF, probably with 2:2 stoichiometry. The second YezG molecules binds with lower affinity (Probable).