Varicose veins form when special valves that keep blood flowing in one direction fail, causing blood to form pools that expand the vein and make it visible through the skin.