Together with proteins McbE and McbF this protein causes immunity to the peptide antibiotic microcin B17 (MccB17), which inhibits DNA replication in Enterobacteriaceae by induction of the SOS repair system. McbG alone can provide some protection. Belongs to the pentapeptide repeat protein family.