Venous ulcers happen when the veins in the legs are not working well. Valves in the leg veins allow blood to flow in one direction from the legs and feet back to the heart.