In recent years, great progress has been made in the research of genome editing systems, one of which is the CRISPR-Cas9 system, a powerful technology that is applied to edit animal genome. Here, we describe a CRISPR-Cas9 mediated mutation protocol for efficiently and specifically editing genes in Drosophila. In this optimized system, the mutant progeny can be generated by only injecting a DNA plasmid encoding synthetic guide RNA (sgRNA) under the control of the U6b promoter into transgenic fly embryos in which Cas9 is specifically expressed in the progenitor cells, thus the gene of interest can be edited by the CRISPR in germ cells, with high rate of heritable mutations and few side effects.