Insect development is intricately governed by hormonal signaling pathways, yet the pivotal upstream regulator that potentiates hormone activation remains largely elusive. The migratory locust, Locusta migratoria, exhibits population density-dependent phenotypic plasticity, encompassing traits such as flight capability, body coloration, and behavior. In this study, we elucidated a negative correlation between population density and ontogenetic development during the nymphal stage of locusts. We found that the level of density influences the developmental trajectory by modulating transcript abundance within the ecdysone signaling pathway, with knockdown of the prothoracicotropic hormone (PTTH) resulting in developmental delay. Transcriptomic analysis of locust brains across solitary and gregarious phases revealed significant differential expression of genes involved in various pathways, including protein synthesis, energy metabolism, hormonal regulation, and immunity. Notably, knockdown experiments targeting two energy regulators, adipokinetic hormone (AKH) and insulin-like polypeptide 1 (ilp1), failed to elicit changes in the developmental process in solitary locusts. However, knockdown of immunoglobulin (IG) significantly shortened the developmental time in higher-density populations. Collectively, our findings underscore the regulatory role of population density in determining developmental duration and suggest that an immune-related gene contributes to the observed differences in developmental patterns.