Tendonitis is one of the most common causes of foot or ankle pain. The muscles of your leg, foot, and ankle are attached to the bone by tendons, which are strong, cord-like tissues. Tendonitis is swelling that happens around a tendon.
Source: Verywell Health