Weak or damaged veins in the leg can cause edema in the legs, ankles or feet. Valves in the veins of the leg help keep blood moving toward your heart. If they are damaged, blood can pool in the legs, ankles or feet and cause edema.