With the rising incidence of various diseases in China and the constant development of the pharmaceutical industry, there is a growing demand for floxacin-type antibiotics. Due to the large-scale production and high cost of waste treatment, the parent drug and its metabolites constantly enter the water environment through domestic sewage, production wastewater, and other pathways. In recent years, the pollution of the aquatic environment by floxacin has become increasingly serious, making the technology to degrade floxacin in the aquatic environment a research hotspot in the field of environmental science. Metal-organic frameworks (MOFs), as a new type of porous material, have attracted much attention in recent years. In this paper, four photocatalytic materials, MIL-53(Fe), NH2-MIL-53(Fe), MIL-100(Fe), and g-C3N4, were synthesised and applied to the study of the removal of ofloxacin and enrofloxacin. Among them, the MIL-100(Fe) material exhibited the best photocatalytic effect. The degradation efficiency of ofloxacin reached 95.1% after 3 h under visible light, while enrofloxacin was basically completely degraded. The effects of different materials on the visible photocatalytic degradation of the floxacin were investigated. Furthermore, the photocatalytic mechanism of enrofloxacin and ofloxacin was revealed by the use of three trappers (▪O2-, h+, and ▪OH), demonstrating that the role of ▪O2- promoted the degradation effect of the materials under photocatalysis.