Colicins are protein toxins produced by certain strains of Escherichia coli bacteria. They act as a defense mechanism, allowing the producing bacteria to inhibit or kill closely related competitor strains, thereby providing a competitive advantage in the environment.