The present invention relates to methods and compositions for the treatment of bacterial infection, for example extraintestinal E. coli infection such as E. coli bacteremia, meningitis and sepsis. The invention relates also to methods of diagnosis and prevention.