A novel irregular-octagonal-prism-shaped host–guest supramolecular network was synthesized and showed excellent photocatalytic splitting of water performance.