Recent years, the quality of human life has substantially improved due to the development of our society. Nonetheless, the rapid pace of societal development has given rise to serious environmental pollution challenges, especially caused by organic contaminants. Herein, a metal–organic framework [MOF(Fe)/FeSx] composite was successfully synthesized using a solvothermal method by employing thioacetamide (TAA) as the sulfur source and MOF(Fe) as the template. The photocatalytic activity of this composite was assessed via the degradation of tetracycline (TC) under ultraviolet (UV) irradiation. The influence of TAA on the photocatalytic activity of the MOF(Fe)/FeSx composite was also investigated. Results revealed that MOF(Fe)/FeSx(2) shown optimal photocatalytic performance. After 35 min of UV light irradiation, MOF(Fe)/FeSx(2) achieved 98.21 % degradation of TC. The exceptional performance of MOF(Fe)/FeSx(2) in photocatalytic degradation positions it as a potential solution for degrading organic pollutants generated in factories and everyday life.