A magnetically-driven method for controlling nanodimensional porosity in sol-gel-derived metal–oxide films, including TiO2, Al2O3, and SnO2, coated onto ferromagnetic amorphous substrates, such as the magnetically-soft Metglas1 alloys, is described. On the basis of the porous structures observed dependence on external magnetic field, a model is suggested to explain the phenomena. Under well-defined conditions it appears that the sol particles coming out of solution, and undergoing Brownian motion, follow the magnetic field lines oriented perpendicularly to the substrate surface associated with the magnetic domain walls of the substrate; hence the porosity developed during solvent evaporation correlates with the magnetic domain size.