The invention relates to a method by which a structure, e.g. a microstructure, is formed into a surface comprising a nanostructure during the fabrication of the structure. The method of fabrication of the structure is preferably embossing, and the invention thus describes methods by which a nanostructure is protected from being destroyed by the embossing process.