Ectropis obliqua, a notorious tea pest, produces a Type-II sex pheromone blend for mate communication. This blend contains (Z,Z,Z)-3,6,9-octadecatriene, (Z,Z)-3,9-cis-6,7-epoxy-octadecadiene, and (Z,Z)-3,9-cis-6,7-epoxy-nonadecadiene. To elucidate the genes related to the biosynthesis of these sex pheromone components, transcriptome sequencing of the female E. obliqua pheromone gland and the abdomen without pheromone gland was performed. Comparative RNAseq analyses identified 52 putative genes, including 7 fatty acyl-CoA elongases (ELOs), 9 fatty acyl-CoA reductases (FARs), 1 decarbonylase (DEC), 3 lipophorins (LIPs), and 32 cytochrome P450 enzymes (CYPs). Tissue expression profiles revealed that two ELOs (ELO3 and ELO5), two FARs (FAR2 and FAR9), one DEC (CYP4G173), and one LIP (LIP1) displayed either abdomen-centric or -specific expression, suggesting potential roles in sex pheromone biosynthesis within the oenocytes of E. obliqua. Furthermore, the tissue expression patterns, combined with phylogenetic analysis, showed that CYP340BD1, which was expressed specifically and predominantly only in the pheromone gland, was clustered with the previously reported epoxidases, highlighting its potential role in the epoxidation of the unsaturated polytriene sex pheromone components. Collectively, our research provides valuable insights into the genes linked to sex pheromone biosynthesis.