Metal-containing nanostructured films are prepared by electrodepositing
a metal-containing composition within the pores of a mesoporous silica template
to form a metal-containing silica nanocomposite. The nanocomposite is annealed
to strengthen the deposited metal-containing composition. The silica is then removed
from the nanocomposite, e.g., by dissolving the silica in an etching solution to
provide a self-supporting metal-containing nanostructured film. The nanostructured
films have a nanowire or nanomesh architecture depending on the pore structure
of the mesoporous silica template used to prepare the films.