Yeast infections happen due to an imbalance of yeast (candida) and bacteria in the vagina. This imbalance is caused by a number of factors which can include pregnancy, antibiotics, uncontrolled diabetes, and a weakened immune system.