We created a transgenic fly to express Drosophila endogenous β-galactosidase. We compared the properties of β-galactosidase molecules from Escherichia coli and Drosophila. Both β-galactosidase molecules were active in both fixed and non-fixed tissues. E. coli β-galactosidase showed a preference for neutral pH but not for acidic pH.