Swelling and pain on the top of the foot may be caused by physiological reasons such as unsuitable shoes or pathologic reasons such as trauma or myofasciitis. 1. Physiological reasons: If the shoes you wear are too small or the soles are too hard, and if you walk or stand for a long time, the soft tissues around the top of the foot will be stimulated, and the top of the foot will become swollen and painful. 2. Pathological causes: if the top of the foot is traumatized, the muscles, tendons and other soft tissues on the top of the foot will be damaged, and the top of the foot will be swollen and painful; long-term walking leads to inflammatory exudation of the soft tissues of the fascia, resulting in aseptic inflammation on the top of the foot and generating plantar myofasciitis. If the inflammatory exudate is not digested and absorbed in a timely manner, then localized swelling and pain will occur. Swelling and pain on the top of the foot may also have other causes, it is recommended to go to the hospital in a timely manner, improve the examination to clarify the cause of the disease, under the guidance of the doctor to give targeted treatment or treatment.