Candida will lead to weight gain because the candida fungus consumes a good portion of your nutritional intake -- making you more hungry and requiring you to eat more.
Many people with candida (who are not on treatment) will suffer from a "sweet tooth," such that they crave sweets, sugars, and low-quality carbs. They also crave midnight snacks, which leads to weight gain.