This study compares the performance and microbial composition of a conventional activated sludge process (ASP) with a modified trickling filter (MTF) for urban sewage treatment. MTF (2 h HRT with effluent recycling) and ASP (8 h HRT) showed >60 % removal efficiency for COD, NH3-N and PO43−-P. MTF outperformed ASP in denitrification and 5 mg/L of NO3−-N was detected in the effluent of MTF. The widespread distribution of nitrogen removal functional genes (amoA, nirK, nirS, napA, narG and nosZ) in MTF indicates simultaneous nitrification and denitrification (SND) as a key process controlling nitrogen removal. In addition, Miseq sequencing was used to examine the microbial community composition in MTF and ASP. The sequencing result revealed that Proteobacteria, Planctomycetes, Chloroflexi and Actinobacteriota were the dominant phyla in both MTF and ASP. Moreover, the co-occurrence of various nitrifiers, denitrifiers, aerobic denitrifiers, and ANAMMOX bacteria in MTF suggested their role in nitrogen removal.