The application of membrane technology to remove pollutant dyes in industrial wastewater is a significant development today. The modification of membranes to improve their properties has been shown to improve the permeation flux and removal efficiency of the membrane. Therefore, in this work, graphene oxide nanoparticles (GO-NPs) were used to modify the polyethersulfone (PES) membrane and prepare mixed matrix membranes (MMMs). This research is dedicated to using two types of very toxic dyes (Acid Black and Rose Bengal) to study the effect of GO on PES performance. The performance and antifouling properties of the new modified membrane were studied using the following: FTIR, SEM, AFM, water permeation flux, dye removal and fouling, and by investigating the influence of GO-NPs on the structure. After adding 0.5 wt% of GO, the contact angle was the lowest (39.21°) and the permeable flux of the membrane was the highest. The performance of the ultrafiltration (UF) membrane displayed a rejection rate higher than 99% for both dyes. The membranes showed the highest antifouling property at a GO concentration of 0.5 wt%. The long-term operation of the membrane fabricated from 0.5 wt% GO using two dyes improved greatly over 26 d from 14 d for the control membrane, therefore higher flux can be preserved.