Several factors increase the risk of developing a C. diff infection. These include prolonged use of antibiotics, hospitalization, advanced age, and underlying health conditions that weaken the immune system. Patients undergoing chemotherapy or those with gastrointestinal surgery are also at higher risk.