We describe a nanomoulding technique which allows low-cost nanoscale patterning of functional materials, materials stacks and full devices. Nanomoulding can be performed on any nanoimprinting setup and can be applied to a wide range of materials and deposition processes.