NF-κB is a major gene regulator in immune responses and ribosomal protein S3 (RPS3) is an NF-κB subunit that directs specific gene transcription. However, it is unknown how RPS3 nuclear translocation is regulated. Here we report that IKKβ phosphorylation of serine 209 (S209) was crucial for RPS3 nuclear localization in response to activating stimuli. Moreover, the foodborne pathogen Escherichia coli O157:H7 virulence protein NleH1 specifically inhibited RPS3 S209 phosphorylation and blocked RPS3 function, thereby promoting bacterial colonization and diarrhea but decreasing mortality in a gnotobiotic piglet infection model. Thus, the IKKβ-dependent modification of a specific amino acid in RPS3 promotes specific NF-κB functions that underlie the molecular pathogenetic mechanisms of E. coli O157:H7.