Polymers with micro- and mesoporous structure are promising as materials for gas storage and separation, encapsulating agents for controlled drug release, carriers for catalysts and sensors, precursors of nanostructured carbon materials, carriers for biomolecular immobilization and cellular scaffolds, as materials with a low dielectric constant, filtering/separating membranes, proton exchange membranes, templates for replicating structures, and as electrode materials for energy storage. Sol–gel technologies, track etching, and template synthesis are used for their production, including in micelles of surfactants and microemulsions and sublimation drying. The listed methods make it possible to obtain pores with variable shapes and sizes of 5–50 nm and achieve a narrow pore size distribution. However, all these methods are technologically multi-stage and require the use of consumables. This paper presents a review of the use of macromolecular architecture in the synthesis of micro- and mesoporous polymers with extremely high surface area and hierarchical porous polymers. The synthesis of porous polymer frameworks with individual functional capabilities, the required chemical structure, and pore surface sizes is based on the unique possibilities of developing the architecture of the polymer matrix.