A defining feature of heterochromatin is methylation of Lys9 of histone H3 (H3K9me), a binding site for heterochromatin protein 1 (HP1). Although H3K9 methyltransferases and HP1 are necessary for proper heterochromatin structure, the specific contribution of H3K9 to heterochromatin function and animal development is unknown. Using our recently developed platform to engineer histone genes in Drosophila, we generated H3K9R mutant flies, separating the functions of H3K9 and nonhistone substrates of H3K9 methyltransferases. Nucleosome occupancy and HP1a binding at pericentromeric heterochromatin are markedly decreased in H3K9R mutants. Despite these changes in chromosome architecture, a small percentage of H3K9R mutants complete development. Consistent with this result, expression of most protein-coding genes, including those within heterochromatin, is similar between H3K9R and controls. In contrast, H3K9R mutants exhibit increased open chromatin and transcription from piRNA clusters and transposons, resulting in transposon mobilization. Hence, transposon silencing is a major developmental function of H3K9.