Your immune system is your body's defense against harmful bacteria and organisms. Sometimes the immune system can be weakened or changed by certain drugs or diseases. When the immune system is weakened or changed, organisms like Candida can build up and cause infections.