A low cost and highly controllable roll-to-roll templated deposition method for manufacturing nanostructured thin films, comprising: creating a stack structure, the stacked structure comprises a conductive substrate, a porous template arranged on the substrate, an
ion conducting layer which is arranged on the template and is formed by a porous bracket containing
electrolyte or
polymer gel, and an
anode arranged on the
ion conducting layer, providing a roll on the
anode; applying pressure to the stacking structure through the roller, so that the first porous template is attached to the substrate and remains attached to the substrate; applying a galvanic potential between the
metal anode and the conductive substrate to grow nanostructures from the substrate into the porous template by electrochemical deposition; and removing the porous template by
chemical dissolution or chemical
etching to obtain the
nanostructure film. A tubular roll radially including a tube, an
electrolyte, and an anode may replace the roll, the
electrolyte, and the anode. The
nanostructure films can also grow on the two sides of the substrate.