Abstract Two‐dimensional covalent organic frameworks were synthesized in high yields by polycondensation in nonvolatile ionic liquids. The resulting crystallites are highly porous and exhibit exceptional capability of removing bisphenol A from water. The one reported is a general method to synthesize microporous and mesoporous frameworks, it allows to achieve regular macroscopic shapes, and it is effective in a wide range of reaction temperatures.