The formation of the biophotonic gyroid material in butterflywing scales is an exceptional feat of evolutionary engineering of functional nanostructures. It is hypothesized that this nanostructure forms by chitin polymerization inside a convolutedmembrane of corresponding shape in the endoplasmic reticulum. However, this dynamic formation process, including whether membrane folding and chitin expression are simultaneous or sequential processes, cannot yet be elucidated by in vivo imaging. We report an unusual hierarchical ultrastructure in the butterfly Thecla opisena that, as a solid material, allows high-resolution three-dimensional microscopy. Rather than the conventional polycrystalline spacefilling arrangement, a gyroid occurs in isolated facetted crystallites with a pronounced size gradient.When interpreted as a sequence of time-frozen snapshots of the morphogenesis, this arrangement provides insight into the formation mechanisms of the nanoporous gyroid material as well as of the intracellular organelle membrane that acts as the template.