The textile industry is one of the major water consumers. Considering the large volume of water consumption, the textile industry is one of the producers of industrial wastewater. The dye removal from the wastewater generated by the textile industry is carried out in various ways, including physical, chemical, and biological methods or a combination thereof. Studies on wastewater treatment have devoted much attention to advanced oxidation processes. The solar photo-Fenton method has many applications for pollutant removal from aqueous solutions. The present study was conducted on the wastewater of Borujerd Textile Company (Borujerd city–Iran). The experiments were designed and performed using response surface methodology based on the Box–Behnken method. Solar lamp intensity (0–300 w/m2), process time (60–240 min), hydrogen peroxide concentration (100–600 mg/L), and iron ion concentration (10–60 mg/L) were selected as the operational variables. In addition, the removal rate of chemical oxygen demand was considered as the response of experimental design. Under optimal conditions (namely, ISL=150 W/m2, t=157 min, CH2O2=600 mg/L and CFe2+=60 mg/L), the chemical oxygen demand removal rate reached the highest (ie, 79.54%).