Naproxen-contaminated water may lead to the accumulation of the drug in aquatic organisms and can pose high risks to an aquatic environment and human beings. Therefore, this work aimed to develop photoelectrochemical sensing and degradation of naproxen (NPX) using zinc-metal organic framework /graphitic carbon nitride thin film-based fluorine-doped tin oxide (Zn-MOF/g-C3N4/FTO) as anode material for the sensing and degradation of naproxen (NPX). The surface morphology, structure, surface property, surface area, optical property, photocurrent, and charge transfer kinetics abilities were studied using different techniques. The nanocomposites showed a superior photocurrent response (0.815 mA cm-2) compared to the original g-C3N4 (0.328 mA cm-2). The photo-anode made of Zn-MOF@g-C3N4/FTO displayed the highest photocurrent value, indicating that the alignment of the two semiconductor bands prevented the quick recombination of electron-hole pairs. Owing to these attractive features, the Zn-MOF/g-C3N4/FTO electrode was applied for photoelectrochemical detection of NPX using chronoamperometry. Interestingly, the nanocomposites-based FTO ascribed a lower detection limit (2.3 ng l-1) with a wide linear range concentration of NPX (0.5 to 200 µg l-1). Additionally, the analytical assessment of repeatability and reproducibility demonstrated robust performance, with commendable relative standard deviations (RSD%) of 2.54 % and 2.40 %, respectively. On the other hand, a remarkable degradation efficiency of 97.52 % was attained when employing a bias potential of 0.1 V during a 2 h photoelectrocatalytic oxidation of NPX. The degradation process was primarily driven by the active participation of holes and hydroxyl radicals in ring opening and subsequent cleavage of by-products. The notable effectiveness of this degradation can be attributed to the combined and synergistic effects of both electrochemical and photocatalytic degradation techniques. The current state demonstrates its effectiveness in the photoelectrochemical sensing and removal of NPX using MOF/g-C3N4 nanocomposites-based electrode materials in wastewater.