© 2022 Elsevier B.V.Ibuprofen (IBP) is one of the most detected pharmaceuticals in wastewater. The conventional methods such as biological treatment, adsorption, etc. are ineffective and usually produce secondary pollution. In this contribution, FePO4 was synthesized using an inorganic sol–gel method assisted by microwave and used to remove IBP from water. X-ray diffraction (XRD), Thermal gravitational Analysis (TGA), Fourier transform infrared spectroscopy (FTIR), physisorption, Diffuse reflectance spectroscopy (DRS), X-ray photoelectron (XPS), and scanning electron microscopy (SEM-EDS) were used to study the phase structure, morphology, and optical properties of the synthesized FePO4. Moreover, for the first time, the photocatalytic property of the as-synthesized FePO4 compound has been evaluated via the degradation of Ibuprophen under artificial sunlight illumination. The findings indicated that FePO4 has a high activity under artificial sunlight irradiation, and the IBP removal was 97 % after 120 min. Furthermore, the generation cycles indicated the higher stability of the photocatalyst to be effectively recycled up to four times without any considerable reduction in the photocatalytic performance. Finally, the involved mechanism of the photocatalytic performance of FePO4 was proposed based on the active species trapping experiments. Thus, It can be suggested that the FePO4 can serve as a promising photocatalyst in the degradation of IBP under sunlight illumination.