Several factors increase the risk of developing a CDI. These include recent antibiotic use, particularly broad-spectrum antibiotics that disrupt normal gut flora, hospitalization or residing in a long-term care facility, advanced age, a history of CDI, and underlying health conditions such as inflammatory bowel disease or a weakened immune system.