The present application relates to an implant for tubular bones and to a method for treating fractures of tubular bones. The implant is used to connect two parts of a tubular bone that has broken with a substantially smooth break. The implant is formed by a shaped piece that is inserted into the medullary cavity of a broken tubular bone. The shaped piece has at least one through-opening, which has a substantially constant internal diameter and extends substantially through the shaped piece and through which a cord can be pulled in order to stabilize the fracture. The shaped piece is made of resorbable material, and two anchor parts can be secured on the cord. The anchor parts fix the cord to the bone, and the shaped piece exploits the principle of an internally braced stack in order to press the fracture surfaces of the bone against each other.