We prepared a rigid triptycene derivative with three 2-ureido-4[1H]-pyrimidinone terminals, which was employed to construct a hydrogen-bonded organic polymer (). The supramolecular organic polymer was permanently porous and exhibited outstanding sorption selectivity towards carbon dioxide over nitrogen (96 at 273 K).