Environmental pollution is one of the most severe problems facing today, including water pollution and the greenhouse effect. Therefore, developing materials with high-efficiency dyes adsorption and CO2 uptake is significant. Covalent organic frameworks(COFs), as a burgeoning class of crystalline porous polymers, present a promising application potential in areas related to pollution regulation due to their exciting surface properties. Herein, we report a 3D COF with a high specific surface area(BET about 2072 m2/g) by utilizing tetrahedral and rectangle building blocks connected through [4+4] imine condensation reactions to synthesize. The obtained COF not only can separate dyes from water effectively but also shows a remarkable CO2 uptake capacity. This research thus provides a promising material to remove dyes and adsorb CO2 in environmental remediation.