This invention describes an implant to fuse the bones of the ankle and subtalar joints together. The method includes steps of producing an implant to apply compressive forces across the bones of the ankle or the bones of the subtalar joint. In one embodiment, the invention includes a method that uses images such as radiographs preoperatively to determine the length and width of the disclosed implant or any other implant based on each patients unique anatomy, that will properly allow coaptation of the ends of the prepared tibia and talus at the ankle joint or the prepared talus and the calcaneus at the subtalar joint. The implant is inserted from the bottom of the foot through a predetermined hole in the calcaneus extending through the talus into the diaphysis of the tibia. When properly seated in the bones, the implant is locked to the bones by screws.