In this study, polyethersulfone (PES) ultrafiltration (UF) membranes were modified with GO, Ag, ZnO, Ag-GO and ZnO-GO nanoparticles to improve carbamazepine removal and fouling prevention by making membrane surfaces more hydrophilic. The fabricated membranes were characterized for surface and cross-sectional morphology, surface roughness and zeta potential, as well as hydrophilicity, functional groups, surface tension parameters and water permeability Thereafter, the membranes were evaluated for their efficiency in removing MgSO4 and carbamazepine as well as antifouling properties. To understand the role of affinity interactions in rejection and fouling, membrane–solute adhesion energies (∆Gslm) were quantified based on the Lifshitz–van der Waals/acid–base method. Unlike previous studies, which have generalized fouling prevention to be due to improvements in hydrophilicity upon adding nanoparticles, this work further explored the role of surface tension components on rejection and fouling prevention. The addition of nanoparticles improved membrane hydrophilicity (77–62°), water permeability (11.9–17.7 Lm−2 h−1 bar−1), mechanical strength (3.46–4.11 N/mm2), carbamazepine rejection (30–85%) and fouling prevention (60–23% flux decline). Rejection and antifouling properties increased as ∆Gslm became more repulsive (i.e., less negative). Membrane modification reduced irreversible fouling, and the fouled membranes were cleaned by flushing with water. Fouling related more to membrane electron donor components (γ−), while the roles of electron acceptor (γ+) and Lifshitz–van der Waals components (γLW) were less important. This work provides more insights into the role of affinity interactions in rejection and fouling and how rejection and fouling mechanisms change with nanoparticle addition.