The invention discloses a method for jointly treating different garbage. In the implementation process, different garbage is subjected to pretreatment, homogenization, anaerobic digestion, flocculation dewatering, denitrification, oxidation treatment, membrane bioreactor treatment, aerobic composting and biodiesel production, treated sewage can reach the third grade Standard of Water Pollutants Discharge of DB11 / 307-2005, the process flow is greatly shortened, the cost is reduced, and methane generated in the treatment process and the recovered waste oil are subjected to deep processing to beutilized as green energy.