The present study aimed to enhance the co-anaerobic digestion system of mushroom residues and cattle manure by incorporating biosurfactant sophorolipid. Results demonstrated that the addition of 75 mg/L sophorolipid increased cumulative methane production by 33.68%, acetate content by 9–10 times, and the abundance of Methanosarcina by 69.22%. The electroactive microorganisms (Bacteroides, Petrimonas, etc.) were enriched, while the up-regulation of functional genes associated with carbohydrate metabolism and methane metabolism was observed. The metagenomic analysis revealed the significant involvement of inter-microbial communication and extracellular electron transfer in anaerobic digestion. Petrimonas was identified as the predominant host involved in cellular processes and environmental information processing. The supplementation of sophorolipid significantly enhanced its abundance during the late anaerobic digestion period (by 12.30%–64.84%). The results emphasize the crucial function of sophorolipid as biosurfactant in enhancing the efficiency of anaerobic digestion.