Swollen legs are still swollen even after sleeping may be caused by diseases, such as nephritis, heart failure, cirrhosis and so on. Patients can follow the doctor’s instructions for general treatment, medication and other forms of treatment to promote disease recovery and symptomatic improvement. 1. Nephritis: Kidney inflammation caused by various reasons will show symptoms such as hematuria, edema and proteinuria. It can be treated with antibiotics, diuretics, immunosuppressants and other drugs as prescribed by doctors, such as cyclophosphamide tablets, cyclosporine soft capsules, amoxicillin capsules, hydrochlorothiazide tablets and so on. 2. Heart failure: heart disease such as right heart failure due to the decline in cardiac function, patients may appear lower limb edema, palpitations and other symptoms. It can be treated with diuretics, beta-blockers and other drugs under doctor’s guidance, such as spironolactone tablets, furosemide tablets, metoprolol tartrate tablets and so on. 3. Cirrhosis: it is a chronic progressive liver disease, mostly caused by hepatitis B virus infection, patients may have symptoms such as abdominal distension, vomiting, hepatosplenomegaly, ascites, edema and so on. It can be treated with antiviral drugs and diuretics as prescribed by the doctor, such as tenofovir disoproxil fumarate tablets and furosemide tablets. Swollen legs are still swollen after a good night’s sleep may also be caused by other reasons, it is recommended to consult a doctor as soon as possible to clarify the cause of the disease and then targeted treatment.