Ciprofloxacin (CIP) residues in the environment pose risks to both human health and ecosystems. In this study, we explored the effect of hydrogen peroxide (H2O2) on CIP degradation, activated by pyrite (FeS2) under simulated sunlight. XRD, XRF, EDS, XSP, DRS, and PL tests confirmed the high purity of FeS2 and its photocatalytic properties. With [CIP] = 30 μM, [FeS2] = 0.2 g/L, [H2O2] = 0.2 mM, CIP removal reached 87.6 %. The removal rate of TOC reached 55.3 % after 60 min of light exposure, and hydroxyl radicals (OH) contributed 72.7 % to the process. H2O2 utilization was 67.5 %, and the system operated effectively across a pH range of 2.00 to 8.00. CIP removal in river water reached 87.9 % after 3 h of light exposure, though the degradation was slower than in ultrapure water. Cl−, SO42−, and NO3− had little effect on degradation, whereas H2PO4−, CO32−, and HCO3− significantly inhibited the process as their concentrations increased. In livestock wastewater, the simulated sunlight-FeS2/H2O2 system was less effective, but after diluting the wastewater 100 times, CIP removal reached 87.6 % after 60 min. The degraded solutions showed no significant toxicity. These findings suggest that FeS2, combined with simulated sunlight, can effectively catalyze low concentrations of H2O2 to produce OH radicals, removing antibiotics from livestock wastewater.