Fungal infections, whether black, white or yellow, are all opportunistic infections, which means they attack an individual who has a weakened immune system. Our immune system is supposed to fight off any invasion by fungi and bacteria. This lack of immunity allows the fungus to spread, invade and destroy tissue.