The extensive use of the antimicrobial compound chlorhexidine (CHD) has emerged as a significant threat to both the ecological environment and human health. To address this concern, a photo-electrochemical cell-microbial fuel cell (PMFC) system was studied for CHD removal by incorporating, for the first time, the photocatalysts black phosphorus/carbon nitride (BPCN) and Cu