Accordingly, there is a need for an improved method of fabricating three-dimensional photonic bandgap structures in a wide variety of solid materials, such as monocrystalline substrates, dielectrics, superconducting materials or magnetic materials, among others.