The present invention relates to a method for the manufacturing of an oral template from a 3D digital data, such that an essentially optimal restoration process of the original structure and functionality of a patient's oral cavity become applicable, comprising: a) prior to a dental treatment, recording and digitizing a first three-dimensional (3D) data that represents the original anatomical structure of at least one tooth within the oral cavity of a patient, for generating a first virtual model that reflects the original anatomical structure of said at least one tooth (i.e., the virtual model of the original tooth); b) processing said first 3D data for generating a second virtual model that reflects the form of said at least one tooth after applying an optimal treatment as defined by medical practice parameters (i.e., the virtual model of an optimal treated tooth); c) generating a third virtual model of a dental template to be mounted on top of said at least one tooth according to said first and second virtual models, wherein said dental template includes guiding paths for achieving an optimal dental treatment as defined by the medical practice parameters (i.e., virtual model of the dental template); and d) manufacturing said dental template according to said third virtual model, such that a dental treatment can be applied to said at least one tooth with a dental tool via the guiding paths of said template whenever said dental template is mounted on top of said at least one tooth, such that after finishing applying the dental treatment to the at least one tooth with the dental template an essentially optimal treated tooth is obtained.