Swelling in the ankles, feet, and legs is often caused by a build-up of fluid in these areas, called oedema, usually caused by standing or sitting in the same position for too long, eating too much salty food, being overweight, being pregnant, or taking certain medicines. It can also be caused by an injury, an insect bite, problems with your kidneys, liver, or heart, a blood clot, or an infection. The swelling should go away on its own, but there are some things you can try to help relieve it. See a doctor if it does not get better in a few days.