Edema of the ankles and lower legs (in ambulatory patients) is characteristic of congestive heart failure, but it can accompany other conditions, including obesity, diseased leg veins, kidney disease, cirrhosis of the liver, anemia, and severe malnutrition.