A two-dimensional porphyrin covalent organic framework is solvothermally synthesized and the macroscopic structure and pore parameters can be synthetically controlled. A remarkable and positive COF size effect on the pore parameters enables such structural control with a synchronized feature.