Often when pain or deformity persists and wound does not heal, surgery may be appropriate to alleviate discomfort or to restore the function of your foot.