Many scarab beetles have sexually dimorphic exaggerated horns that are an evolutionary novelty. Since the shape, number, size, and location of horns are highly diverged within Scarabaeidae, beetle horns are an attractive model for studying the evolution of sexually dimorphic and novel traits. In beetles including the Japanese rhinoceros beetle Trypoxylus dichotomus, the sex determination gene doublesex (dsx) plays a crucial role in sexually dimorphic horn formation during larval-pupal development. However, knowledge of when and how dsx drives the gene regulatory network (GRN) for horn formation to form sexually dimorphic horns during development remains elusive. To address this issue, we identified a Trypoxylus-ortholog of the sex determination gene, transformer (tra), that regulates sex-specific splicing of the dsx pre-mRNA, and whose loss of function results in sex transformation. By knocking down tra function at multiple developmental timepoints during larval-pupal development, we estimated the onset when the sex-specific GRN for horn formation is driven. In addition, we also revealed that dsx regulates different aspects of morphogenetic activities during the prepupal and pupal developmental stages to form appropriate morphologies of pupal head and thoracic horn primodia as well as those of adult horns. Based on these findings, we discuss the evolutionary developmental background of sexually dimorphic trait growth in horned beetles.All rights reserved. No reuse allowed without permission.(which was not peer-reviewed) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity.