Water pollution due to global economic activity is one of the greatest environmental concerns, and many efforts are currently being made toward developing materials capable of selectively and efficiently removing pollutants and contaminants. A series of β-ketoenamine covalent organic frameworks (COFs) have been synthesized, by reacting 1,3,5-triformylphloroglucinol (TFP) with different C2-functionalized and nonfunctionalized diamines, in order to evaluate the influence of wall functionalization and pore size on the adsorption capacity toward dye and heavy metal pollutants. The obtained COFs were characterized by different techniques. The adsorption of methylene blue (MB), which was used as a model for the adsorption of pharmaceuticals and dyes, was initially evaluated. Adsorption studies showed that –NO2 and –SO3H functional groups were favorable for MB adsorption, with TpBd(SO3H)2-COF [100%], prepared between TFP and 4,4′-diamine- [1,1′-biphenyl]-2,2′-disulfonic acid, achieving the highest adsorption capacity (166 ± 13 mg g−1). The adsorption of anionic pollutants was less effective and decreased, in general, with the increase in –SO3H and –NO2 group content. The effect of ionic interactions on the COF performance was further assessed by carrying out adsorption experiments involving metal ions. Isotherms showed that nonfunctionalized and functionalized COFs were better described by the Langmuir and Freundlich sorption models, respectively, confirming the influence of functionalization on surface heterogeneity. Sorption kinetics experiments were better adjusted according to a second-order rate equation, confirming the existence of surface chemical interactions in the adsorption process. These results confirm the influence of selective COF functionalization on adsorption processes and the role of functional groups on the adsorption selectivity, thus clearly demonstrating the potential of this new class of materials in the efficient and selective capture and removal of pollutants in aqueous solutions.