It is vital to wear compression socks to prevent and treat deep vein thrombosis, particularly after surgery. These are special stockings that squeeze the ankles, calves, and sometimes thighs. The way they work is by being tighter around the ankles, which pushes up fluid in the leg. This pressure allows blood to flow freely and prevents any pooling of blood that can cause a clot. If the compression socks are not worn, there is a higher chance of deep vein thrombosis, which will cause the leg to swell, hurt, and feel warm to the touch. Patients who are told to wear these stockings must wear them all day and then take them off when heading to bed. Unless advised, compression socks should not be worn at night because they can cut off blood flow in the leg. If you need to wear compression socks, know they are designed to be used when awake and moving. When sleeping, there is generally not a need to push fluid up the leg because there is no gravitational resistance when lying down.