An osteotomy involves shaving or cutting the part of the bone that protrudes from your foot. It can also involve cutting the first phalange or metatarsal to shorten and realign the bones. Pins are used to hold the newly segmented bones in place. To further realign the foot, tight tendons and ligaments are released. Meanwhile, loose tendons and ligaments are tightened.