Clostridioides difficile infection, or CDI, is a bacterial illness. It often causes severe diarrhea. This happens, mostly after a person takes antibiotics. The diarrhea is because of a bacterium called Clostridioides difficile (once known as Clostridium difficile).