The fabrication of nanoarrays involves several techniques. One common method is lithography, which uses light to pattern materials at the nanoscale. Other approaches include self-assembly, where nanomaterials spontaneously organize into ordered structures, and templating, where a pre-patterned substrate guides the formation of the nanoarray. The choice of fabrication method depends on the desired properties and application of the nanoarray.