Diversification of leg appendages is one of the hallmarks of morphological evolution in insects. In particular, insect hind (T3) legs exhibit a whole spectrum of morphological diversification, ranging from uniform to extremely modified. To elucidate the developmental basis of T3 leg evolution, we have examined the expression patterns of two homeotic genes, Ultrabithorax and abdominal-A (collectively referred to as UbdA), in a broad range of species. First, our results show that UbdA expression in hemimetabolous insects is localized only in specific T3 leg segments undergoing differential growth (compared to their foreleg counterparts). In contrast, in basal hexapod and insect lineages, the absence of the UbdA signal coincides with uniform leg morphology. The same situation exists in first instar larvae of holometabolous insects, in which absence of UbdA expression in the embryonic T3 legs is associated with the lack of larval T3 leg diversification. Second, there is a clear difference in the timing of expression between species with greatly enlarged T3 leg, such as crickets and grasshoppers, and species that exhibit more moderate enlargement of hind legs, such as mantids and cockroaches. In the former, the UbdA expression starts much earlier, coinciding with the elongation of T3 limb buds. In the latter, however, the UbdA expression starts at much later stages of development, coinciding with the establishment of distinct leg segments. These results suggest that diversification of insect hind legs was influenced by changes in both the spatial and temporal regulation of the UbdA expression.