The invention concerns a method for manufacturing a template (6), whereby a digital or physical model of the shape of at least a part of the jaw (1) is generated. A desired shape for the jaw bone (2) for positioning a bone superstructure (25) is compared to said model and a bone part (5) of the jaw bone (2) is identified, which bone part (5) is to be removed in order to approach said desired shape. A guide surface (8) is provided on the template (6) to guide a milling element (10) in order to remove the identified bone part (5). The invention also concerns a bone superstructure (25).