Anaerobic membrane reactors (AnMBRs) have been applied to effectively treat dairy wastes because they can address the drawbacks of sludge flotation and biomass washout. However, when dairy wastes contain considerable proportion of lipids, any anaerobic systems will likely encounter challenges with long-chain fatty acid (LCFA) inhibition. In this study, a thermophilic AnMBR was operated to treat dairy processing wastewater (DPW) plus ice cream waste (ICW). To evaluate the impact of LCFAs, the lipid-rich ICW was gradually introduced at different levels (0, 5, 10, and 20 %) into the AnMBR, along with a stepwise increase in lipid loading rate (LLR) from 0.22 to 11.24 g lipid/L/d. The results of biomethanation revealed that the AnMBR could be successfully operated when the LLR was maintained at 5.73 g lipid/L/d with a lipid/VS ratio of 50.22 % in the feedstock. However, at ultra-high LLR of 11.24 g lipid/L/d (20 % ICW added), a significant inhibitory effect on methane yields was observed, resulting in a reduction of 56.90 %. Dynamic analysis of the LCFAs profiled that a lower degradation rate was an important factor contributing to LCFA accumulation, and the inhibition concentration of various LCFAs was identified. Based on microbial evolution and co-occurrence network results, potential syntrophic partnerships between LCFA-degrading bacteria and methanogens were proposed. The responsible enzyme genes in the LCFA-degrading, acetoclastic, and hydrogenotrophic methanogenic pathways played crucial roles in LCFA inhibition and degradation. These findings offer practical insights for the efficient methanogenic treatment of lipid-rich wastes.