By employing an organic-organic self-assembly in a dilute aqueous solution, novel ordered bicontinuous cubic mesoporous polymers and carbons with Iad symmetry are directly synthesized.