Compression stockings work by exerting external pressure on the legs, which helps to compress the surface veins, arteries, and muscles. This increases the pressure in the tissues under the skin, reducing excess leakage of fluid from the capillaries and increasing absorption of this fluid by the capillaries and lymphatic vessels. The result is improved circulation and reduced swelling.