Shiga toxin-producing Escherichia coli (STEC) infects humans by colonizing the large intestine, and causes kidney damage by secreting Shiga toxins (Stxs). The increased secretion of Shiga toxin 2 (Stx2) by some antibiotics, such as ciprofloxacin (CIP), increases the risk of hemolytic-uremic syndrome (HUS), which can be life-threatening. However, previous studies evaluating this relationship have been conflicting, owing to the low frequency of EHEC infection, very small number of patients, and lack of an appropriate animal model. In this study, we developed gut-kidney axis (GKA) on chip for co-culturing gut (Caco-2) and kidney (HKC-8) cells, and observed both STEC O157:H7 (O157) infection and Stx intoxication in the gut and kidney cells on the chip, respectively. Without any antibiotic treatment, O157 killed both gut and kidney cells in GKA on the chip. CIP treatment reduced O157 infection in the gut cells, but increased Stx2-induced damage in the kidney cells, whereas the gentamycin treatment reduced both O157 infection in the gut cells and Stx2-induced damage in the kidney cells. This is the first report to recapitulate a clinically relevant situation, i.e., that CIP treatment causes more damage than gentamicin treatment. These results suggest that GKA on chip is very useful for simultaneous observation of O157 infections and Stx2 poisoning in gut and kidney cells, making it suitable for studying the effects of antibiotics on the risk of HUS.