Ofloxacin (OFL) is a commonly used antibiotic that can enter wastewater treatment plants and be adsorbed by the sludge, resulting in a high OFL concentration in sludge and affecting the subsequent sludge anaerobic digestion process. However, the micro mechanisms involved in this process have not been thoroughly studied. Therefore, this study focuses on the effect of OFL on the sludge anaerobic digestion of sludge to provide such support. The experimental results showed that the maximal methane yield decreased from 277.7 to 164.7 mL/g VSS with the OFL concentration increased from 0 to 300 mg/L. Additionally, OFL hindered the intermediate biochemical processes of hydrolysis, acidogenesis, acetogenesis, and acetoclastic methanogenesis. However, it promoted hydrogenotrophic methanogenesis process, using H