Procedures are outlined to prepare segmented and coaxial nanowires via templated electrodeposition in nanopores. As examples, segmented nanowires consisting of Ag and ZnO segments, and coaxial nanowires consisting of a TiO2 shell and a Ag core were made. The nanowires were used in photocatalytic hydrogen formation experiments.