A three-dimensional rigid "six-connected" porous triptycene network based on Tröger's base (TB-PTN) was synthesized by using triptycenes as connectors and Tröger's base as linkers. With characteristics of a high surface area of 1528 m2 g-1, nitrogen-enriched groups, and superior thermal stability, TB-PTN displays a high CO2 uptake of 22.3 wt % (273 K, 1 bar) and excellent iodine vapor adsorption (240 wt %).