This article takes the phiC31 integrase-mediated transgenesis in Drosophila as an example and presents an optimized protocol for embryo microinjection, a crucial step for creating transgenic flies.