We report the first successful application of an ordered bicontinuous gyroid semiconducting network in a hybrid bulk heterojunction solar cell. The freestanding gyroid network is fabricated by electrochemical deposition into the 10 nm wide voided channels of a self-assembled, selectively degradable block copolymer film. The highly ordered pore structure is ideal for uniform infiltration of an organic hole transporting material, and solid-state dye-sensitized solar cells only 400 nm thick exhibit up to 1.7% power conversion efficiency. This patterning technique can be readily extended to other promising heterojunction systems and is a major step toward realizing the full potential of self-assembly in the next generation of device technologies.