A porous polymer membrane useful in gas separation, the porous polymer membrane comprising a polymeric structure having crosslinked aromatic groups and a hierarchical porosity in which micropores having a pore size less than 2 nm are present at least in an outer layer of the porous polymer membrane, and macropores having a pore size of over 50 nm are present at least in an inner layer of the porous polymer membrane. Also described are methods for producing the porous polymer membrane in which a non-porous polymer membrane containing aromatic rings is subjected to a Friedel-Crafts crosslinking reaction in which a crosslinking molecule crosslinks the aromatic rings in the presence of a Friedel-Crafts catalyst and organic solvent under sufficiently elevated temperature, as well as methods for using the porous polymer membranes for gas or liquid separation, filtration, or purification.
STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH
 This invention was made with government support under Prime Contract No. DE-AC05-00OR22725 awarded by the U.S. Department of Energy. The government has certain rights in the invention.