Enterohemorrhagic and enteropathogenic E. coli (EHEC and EPEC) can cause severe and potentially life-threatening infections. Their pathogenicity is mediated by at least 40 effector proteins which they inject into their host cells by a type-III secretion system leading to the subversion of several cellular pathways. However, the molecular function of several effectors remains unknown, even though they contribute to virulence. Here we show that one of them, NleF, binds to caspase-4, -8, and -9 in yeast two-hybrid, LUMIER, and direct interaction assays. NleF inhibits the catalytic activity of the caspases in vitro and in cell lysate and prevents apoptosis in HeLa and Caco-2 cells. We have solved the crystal structure of the caspase-9/NleF complex which shows that NleF uses a novel mode of caspase inhibition, involving the insertion of the carboxy-terminus of NleF into the active site of the protease. In conformance with our structural model, mutagenized NleF with truncated or elongated carboxy-termini revealed a complete loss in caspase binding and apoptosis inhibition. Evasion of apoptosis helps pathogenic E. coli and other pathogens to take over the host cell by counteracting the cell's ability to self-destruct upon infection. Recently, two other effector proteins, namely NleD and NleH, were shown to interfere with apoptosis. Even though NleF is not the only effector protein capable of apoptosis inhibition, direct inhibition of caspases by bacterial effectors has not been reported to date. Also unique so far is its mode of inhibition that resembles the one obtained for synthetic peptide-type inhibitors and as such deviates substantially from previously reported caspase-9 inhibitors such as the BIR3 domain of XIAP.