The huge utilization of hydroxychloroquine in autoimmune infections led to an abnormal increment in its concentration in wastewater, which can pose a real risk to the environment, necessitating the development of a pretreatment technique. In order to do this, we are interested in researching how hydroxychloroquine degrades in contaminated water. The main goal of this investigation is to optimize the operating conditions for the hydroxychloroquine degradation in water using Fe(0)/S2O2-8/UV system. To get adequate removal of HCQ, a chemometric method based on the Box–Behnken design was applied to optimize the influence of the empirical parameters selected including Fe(0) dose, S2O2-8 concentration, pH, and initial HCQ concentration. The quadratic regression model representing the HCQ removal rate (η%) was evolved and validated by ANOVA. The optimal conditions as a result of the above-mentioned trade-off between the four input variables, with η(%) as the dependent output variable, were captured using RSM methodology and the composite desirability function approach. For HCQ full decomposition, the optimal values of the operating factors are as follows: S2O2-8 dose: 194.309 mgL-1; Fe(0) Quantity: 198.83mgL-1 ; pH=2.017 and HCQ initial dose of 296.406mgL-1. Under these conditions, the HCQ removal rate, achieved after 60 minutes of reaction, attained 98.95%.