Usually, your immune system keeps yeast under control. If you are sick or taking antibiotics, yeast can multiply and cause an infection.