Ferromagnetic nanostructures have been electrodeposited within the pores of porous silicon templates with average pore diameters between 25 and 60 nm. In this diameter regime, the pore formation in general is accompanied by dendritic growth resulting in rough pore walls, which involves metal deposits also offering a branched structure. These side branches influence the magnetic properties of the composite system not only due to modified and peculiar stray fields but also because of a reduced interpore spacing by the approaching of adjacent side pores. To improve the morphology of the porous silicon structures, a magnetic field up to 8 T has been applied during the formation process. The magnetic field etching results in smaller pore diameters with less dendritic side pores. Deposition of a ferromagnetic metal within these templates leads to less branched nanostructures and, thus, to an enhancement of the coercivity of the system and also to a significantly increased magnetic anisotropy. So magnetic field-assisted etching is an appropriate tool to improve the structure of the template concerning the decrease of the dendritic pore growth and to advance the magnetic properties of the composite material.