Protocol for the generation of gene deletions and gene replacements in Escherichia coli O157:H7 using a temperature sensitive allelic exchange system. Technology requires flanking DNA to be cloned into a temperature sensitive vector but the resulting clone allows great flexibility for further modification of the target sequence. It is therefore highly suited to the study of genes in which several rounds of changes are envisaged.