Adhesion pili (fimbriae) play a critical role in initiating the events that lead to intestinal colonization and diarrheal disease by enterotoxigenic Escherichia coli (ETEC), an E. coli pathotype that inflicts an enormous global disease burden. We elucidate atomic structures of an ETEC major pilin subunit, CfaB, from colonization factor antigen I (CFA/I) fimbriae. These data are used to construct models for 2 morphological forms of CFA/I fimbriae that are both observed in vivo: the helical filament into which it is typically assembled, and an extended, unwound conformation. Modeling and corroborative mutational data indicate that proline isomerization is involved in the conversion between these helical and extended forms. Our findings affirm the strong structural similarities seen between class 5 fimbriae (from bacteria primarily causing gastrointestinal disease) and class 1 pili (from bacteria that cause urinary, respiratory, and other infections) in the absence of significant primary sequence similarity. They also suggest that morphological and biochemical differences between fimbrial types, regardless of class, provide structural specialization that facilitates survival of each bacterial pathotype in its preferred host microenvironment. Last, we present structural evidence for bacterial use of antigenic variation to evade host immune responses, in that residues occupying the predicted surface-exposed face of CfaB and related class 5 pilins show much higher genetic sequence variability than the remainder of the pilin protein.crystal structure ͉ pili ͉ diarrheal disease ͉ adhesion ͉ proline isomerization