Foot or ankle injury. An injury to the foot or ankle can lead to swelling. The most common is a sprained ankle, which occurs when an injury or misstep causes the ligaments that hold the ankle in place to be stretched beyond their normal range.