Method in connection with the production of a template, preferably for nanoimprint lithography, which template comprises a flat plate (1) of a first material and a three-dimensional structure (6, 8) of a second material, arranged on the plate, said second material introductory being applied on said plate, in the method, to form said structure. According to the invention, said second material is thereafter fixed to the plate of said first material, by heat treatment (Q) at at least 150 DEG C, for the production of said template. The invention also relates to a template which has been produced by use of the method. |