Randomly cloned DNA fragments and a poly-(GATA) containing sequence were used as probes to identify sex chromosomal inheritance and to detect differences at the molecular level between the homomorphic X and Y in the phorid fly, Megaselia scalaris. Restriction fragment length differences between males and females and between two laboratory stocks of different geographic origin were used to differentiate between sex chromosomal and autosomal origin of the respective fragments. Five random probes detected X and Y chromosomal DNA loci and two others recognized autosomal DNA loci. One random probe and the poly(GATA) probe hybridized with both sex chromosomal and autosomal restriction fragments. Most of the Y chromosomal restriction fragments were conserved in length between the two stocks while most of the X chromosomal and autosomal fragments showed length polymorphism. It was concluded, therefore, that the Y chromosome contains a conserved segment in which crossover is suppressed and restriction site differences have accumulated relative to the X. These chromosomes, therefore, conform to a theoretically expected early stage of sex chromosome evolution.