The hybrid sludge-biofilm processes have been widely applied for the construction or upgradation of biological wastewater treatment process. Ecological mechanisms of biofilm development remain unclear in the hybrid ecosystem, because of the intricate interactive effects between sludge and biofilms. Herein, the establishment principles of biofilms with distinct coexisting sludge amounts were uncovered by varying sludge retention times (SRTs) from 5 to 40 days in the hybrid process. With the increasing of SRTs, biofilm biomass decreased with the increase of suspended sludge, resulting in lower biofilm proportion. As estimated by the Gompertz growth model, the increased sludge amounts (i.e., higher SRTs of 20 and 40 days) prolonged the initial colonization stage and decreased the specific development rate of biofilms when compared to lower sludge amounts with the shorter SRTs (i.e., 5 and 10 days). Null model analysis demonstrated that deterministic homogenous selection could facilitate the colonization and accumulation of biofilms with less coexisting sludge (SRT of 10 days). However, stochastic ecological drift and homogenizing dispersal dominated the colonization and accumulation stages of biofilms with more coexisting sludge (SRT of 20 days), respectively. The ecological networks reflected that positively-related taxa presented taxonomic relatedness, whereas high inconsistency of taxonomic relatedness was observed among aggregate forms or development stages as affected by varied SRTs. The high incidence of intra-taxa co-occurrence patterns suggested that taxa with similar ecological niches could be specifically selected in biofilms when being exposed with less coexisting sludge. This study uncovered ecological mechanisms of biofilm development driven by varying the SRTs of suspended sludge, which would help to propose appropriate strategies for the efficient start-up and optimization of the hybrid sludge-biofilm system.