Focused ion beam milling of self-assembled magnetic superstructures is demonstrated as a novel approach to fabricate porous materials with tunable porosity. During exposure to the ion beam, nanoparticles in the superstructure are subjected to combined milling and melting, thus merging together into a porous network.