Rare-earth elements (REEs) are present in a broad range of critical materials. The development of solid adsorbents for REE capture could enable the cost-effective recycling of REE-containing magnets and electronics. In this context, covalent organic frameworks (COFs) are promising candidates for REE adsorption due to their exceptionally high surface area. Despite having attractive physical properties, COFs are heavily underutilized for REE capture applications due to their limited lifecycle in aqueous acidic environments, as well as synthetic challenges associated with the incorporation of ligands suitable for REE capture. Here, we show how the Ugi multicomponent reaction can be leveraged to post-synthetically modify imine-based COFs for the introduction of diglycolic acid (DGA) moiety, a promising scaffold for REE capture. The adsorption capacity of the DGA-functionalized COF was found to be more than 40 times higher than that of the pristine imine COF precursor and more than three times higher than that of the next-best reported DGA-functionalized solid support. This rationally designed COF has appealing characteristics of high adsorption capacity, fast and efficient capture and release of the REE ions, and reliable recyclability, making it one of the most promising adsorbents for solid-liquid REE ion extractions reported to date.