This surgery removes part or all your leg. It is done because tissue in the leg is diseased and can't be healed. Or it may be needed to prevent the disease from spreading farther into your body. The goal of the surgery is to restore your ability to function. This is because removing the diseased part of your leg can improve your total health.