Microbiome-based therapies are used to prevent recurrent Clostridioides difficile infection (CDI). These therapies work by restoring the balance of "good" bacteria in your gut, which helps to improve your digestive health and immune function. Some of these medications come in different forms, including oral capsules and rectal enemas. One example is Rebyota (fecal microbiota). You can discuss with a healthcare professional which option is best for you.