To replace or reattach the sole of an article of footwear.
I had to resole my boot after I stepped on a nail.