Bacteria produce under certain stress conditions bacteriocins and microcins that display antibacterial activity against closely related species for survival. Bacteriocins and microcins exert their antibacterial activity by either disrupting the membrane or inhibiting essential intracellular processes of the bacterial target. To this end, they can lyse bacterial membranes and cause subsequent loss of their integrity or nutrients, or hijack membrane receptors for internalisation. Both bacteriocins and microcins are ribosomally synthesised and several are posttranslationally modified, whereas others are not. Such peptides are also toxic to the producer bacteria, which utilise immunity proteins or/and dedicated ATP-binding cassette (ABC) transporters to achieve self-immunity and peptide export. In this review, we discuss the structure and mechanism of self-protection that is conferred by these ABC transporters.