They’re often recommended for people with vein-related conditions, but they can be useful in other situations, too.
In most cases, a doctor will recommend removing compression socks before going to bed. But they may advise wearing them overnight if you have venous ulcers or are recovering from venous surgery.