In this study, guanidine-linked covalent organic framework (TPDGCl) was synthesized via a solvothermal method. The presence of guanidine groups in its structure facilitates electrostatic interactions and provides hydrogen bonding sites, enabling the selective enrichment of perfluoroalkyl carboxylic acids (PFCAs) from environmental water samples. The material exhibits rapid kinetic mass transfer, which facilitates the efficient removal of samples containing PFCAs from aqueous solutions within 5 min. Furthermore, TPDGCl exhibits several advantageous properties, including high selectivity for PFCAs, a high adsorption capacity (2005 mg/g), excellent chemical stability, and remarkable recyclability (five cycles). Additionally, density functional theory (DFT) studies have demonstrated that the adsorption of PFCAs on TPDGCl is enhanced by ion exchange, hydrophobic interactions, hydrogen bonding interactions and ordered channel structures. Finally, TPDGCl was used as an adsorbent for dispersive solid-phase extraction (d-SPE), in combination with ultra-high performance liquid chromatography-tandem mass spectrometry (UHPLC-MS/MS), to develop an analytical method for the efficient extraction and sensitive detection of PFCAs. The developed method exhibits highly sensitivity, with detection and quantification limits of 0.64–0.85 ng/L and 2.6–3.4 ng/L, respectively. The recoveries of actual water samples ranged from 75.4% to 113.7%. Moreover, TPDGCl effectively reduces the levels of PFCAs in real water samples to less than 70 ng/L within only 1 h. These results indicate that TPDGCl is an effective adsorbent for removing PFCAs from environmental water samples.