Two porous aromatic frameworks, PAF-36 and PAF-37, containing azo moieties, were synthesized via Sonogashira-Hagihara coupling reactions. Gas sorption measurements indicated that reversible stimuli-responsive adsorption properties were triggered by ultraviolet ( , respectively. After UV irradiation, the BET surface areas increased during the trans-cis isomerization process, and the micropore sizes, around 6 and 8 Å, also increased. In addition, the CO2 adsorption capacities increased slightly because of trans-cis conversion of azo groups. It is worth mentioning that the CO2 uptakes of the polymers were almost constant during multiple cycles of alternating external stimuli, displaying high switchability of the trans-cis isomerization.