Lack of magnesium in your body is another cause for water retention. Magnesium is needed in your body since it is used in almost all of its processes. When you don’t have enough magnesium, your body can’t function properly which results in water retention.