Several conditions are associated with an increased risk of yeast infections. They include pregnancy; certain types of medication, including some contraceptives (birth control pills, patches, vaginal rings, IUDs); antibiotics, and steroids; immune-suppressing diseases, including HIV; diabetes; and stress and lack of sleep, which can weaken the immune system.