Tetraphenyladamantane-based porous poly(Schiff base)s with BET surface area (>1000 m(2) g(-1)), CO2 uptake (15 wt%, 273 K/1 bar) and H2 uptake (1.26 wt%, 77 K/1 bar) were synthesized. The structure-directing effect of isomers of phenyl diamines on building porous architecture was investigated.