The insulin signaling pathway has been implicated in several physiological and developmental processes. In mammals, it controls expression of 3-Hydroxy-3-Methylglutaryl CoA Reductase (HMGCR), a key enzyme in cholesterol biosynthesis. In insects, which can not synthesize cholesterol de novo, the HMGCR is implicated in the biosynthesis of juvenile hormone (JH). However, the link between the insulin pathway and JH has not been established. In Drosophila, mutations in the insulin receptor (InR) decrease the rate of JH synthesis. It is also known that both the insulin pathway and JH play a role in the control of sexual dimorphism in locomotor activity. In studies here, to demonstrate that the insulin pathway and HMGCR are functionally linked in Drosophila, we first show that hmgcr mutation also disrupts the sexual dimorphism. Similarly to the InR, HMGCR is expressed in the corpus allatum (ca), which is the gland where JH biosynthesis occurs. Two p[hmgcr-GAL4] lines were therefore generated where RNAi was targeted specifically against the HMGCR or the InR in the ca. We found that RNAi-HMGCR blocked HMGCR expression, while the RNAi-InR blocked both InR and HMGCR expression. Each RNAi caused disruption of sexual dimorphism and produced dwarf flies at specific rearing temperatures. These results provide evidence: (i) that HMGCR expression is controlled by the InR and (ii) that InR and HMGCR specifically in the ca, are involved in the control of body size and sexual dimorphism of locomotor activity.