Three-dimensional covalent organic frameworks (3D COFs) were synthesized by targeting two nets based on triangular and tetrahedral nodes: ctn and bor. The respective 3D COFs were synthesized as crystalline solids by condensation reactions of tetrahedral tetra(4-dihydroxyborylphenyl) methane or tetra(4-dihydroxyborylphenyl)silane and by co-condensation of triangular 2,3,6,7,10,11-hexahydroxytriphenylene. Because these materials are entirely constructed from strong covalent bonds (C-C, C-O, C-B, and B-O), they have high thermal stabilities (400 degrees to 500 degrees C), and they also have high surface areas (3472 and 4210 square meters per gram for COF-102 and COF-103, respectively) and extremely low densities (0.17 grams per cubic centimeter).