Transabdominal (Tab) is a dominant gain-of-function mutation that results in islands of sexually dimorphic abdominal cuticle in the dorsal thorax of the adult fly. This phenotype has complete penetrance and constant expressivity, and we show that it results from ectopic expression of ABD-BII, one of two proteins derived from the Abdominal B (Abd-B) domain of the bithorax complex (BX-C) and one that is normally expressed only in terminal portions of the abdomen. In Tab/+ animals ABD-BII is ectopically expressed in the relevant imaginal "wing" disc as three islands of cells whose location on the fate map corresponds to the three islands of transformed cuticle in each half of the adult thorax. Tab is associated with an inseparable inversion bringing sequences in 90E next to sequences in the transcription unit encoding ABD-BII in 89E. That 90E sequences drive ectopic expression of ABD-BII is indicated by our finding that such sequences in a P-element transformant express the reporter gene's product (beta-galactosidase) in the same three islands of wing disc cells. On morphological grounds, the transformed islands in the adult thorax correspond to subsets of muscle attachment cells. Ectopic expression of a homeodomain protein thus creates a unique and invariant pattern of sexual dimorphism.