Swollen ankles and feet due to edema, or fluid build-up, can be caused by minor or major conditions, such as injury, pregnancy, standing or sitting for a long time, heart disease, or liver failure.