The legs of insects play an important role in their daily behaviour, especially reproduction. Entomologists have performed much research on the role of the leg in different behaviours of beetles, an important group in the insect family, but relatively little has been done to study the ultrastructure and transcriptome of their legs. Hence, we systematically studied the ultrastructure and gene expression of the leg of G. cantor, a polygynous beetle, and compared its male and female diversity. In this study, we found the fore-leg, mid-leg and hind-leg of the female were significantly longer than those of the male. From the perspective of intuitive structural differences, we also compared the ultrastructures of the adhesion structure (tarsal) of males and females. The tarsal functional structure of the adult leg mainly includes sensilla and an adhesion structure. The sensilla on the tarsal joint mainly include sensilla chaetica (SCh II, SCh III) and sensilla trichodea (ST II). The adhesion structure includes disc-shaped bristles (di), lanceolate bristles (la), serrated bristles (se), spatula-shaped bristles (spl) and mushroom-shaped bristles (mus). Although there was no significant difference in sensillum distribution or type between males and females, there were significant differences in the distribution and species of adhesion structures between the fore-leg, mid-leg, and hind-leg of the same sex and between males and females. Therefore, different adhesion structures play different roles in various behaviours of beetles. On the other hand, the transcriptome results of male and female legs were screened for a subset of olfaction- and mechanics-related genes. We discovered that the male leg showed upregulation of 1 odorant binding protein (OBP), 2 Olfactory receptors (ORs) and 2 Chemosensory proteins (CSPs). Meanwhile, the female leg showed upregulation of 3 OBPs, 1 OR, 1 Gustatory receptor (GR) and 3 Mechanosensitive proteins (MSPs). An in-depth examination of the ultrastructure and molecular composition of the legs can elucidate its function in the reproductive behavior of G. cantor. Moremore, this investigation will serve as a cornerstone for subsequent research into the underlying behavioral mechanisms.