This research highlights the use of a WO3:CeO2@MXene/gC3N4 (MGWC) nanodisk as a versatile material. MGWC demonstrates efficient photocatalytic degradation of moxifloxacin (MOF) in water under sunlight and also shows great promise for high-performance supercapacitor applications. MGWC was synthesized using a modified hydrothermal method and thoroughly characterized using various techniques. The MGWC showed a band gap energy of 2.79 eV determined through UV–Vis DRS analysis and an average crystallite size of 39.6 nm calculated from XRD. A promising photocatalytic activity was observed for the degradation of MOF, outperforming other photocatalysts. Additionally, preliminary studies examined variations in catalyst concentration, pH, kinetics, electrolytes, scavengers, reusability, and TOC, contributing valuable insights. Under optimal conditions, the MOF achieved almost complete degradation, reaching about 99.7% within 180 min using the MGWC photocatalyst. Additionally, MGWC exhibits promising potential in supercapacitor applications. EIS and CV studies have been used to examine MGWC’s exceptional charge transfer properties. CV tests confirm the pseudo-capacitive nature of MGWC electrodes. GCD studies of MGWC exhibit a high specific capacitance of 551 F/g at 1 A/g with incomparable capacitance retention of 98.1% over 10,000 cycles. This research not only aids in reducing emerging environmental pollutants but also sets the stage for sustainable energy solutions.