Selective gene expression in cells in physiological or pathological conditions is important for the growth and development of organisms. Acetylation of K16 (H4K16ac) catalyzed by histone acetyltransferase 8 (KAT8) is known to promote gene transcription; however, the regulation of KAT8 transcription and the mechanism by which KAT8 acetylates H4K16ac to promote specific gene expression are unclear. Here, using the lepidopteran insect Helicoverpa armigera as a model, we reveal that the transcription factor FOXO promotes KAT8 expression and recruits KAT8 to the promoter region of autophagy-related gene 8 (Atg8) to increase H4 acetylation at that location, enabling Atg8 transcription under the steroid hormone 20-hydroxyecdysone (20E) regulation. H4K16ac levels are increased in the midgut during metamorphosis, which is consistent with the expression profiles of KAT8 and ATG8. Knockdown of Kat8 using RNA interference results in delayed pupation and repression of midgut autophagy and decreases H4K16ac levels. Overexpression of KAT8-GFP promotes autophagy and increases H4K16ac levels. FOXO, KAT8 and H4K16ac colocalized at the FOXO binding region to promote Atg8 transcription under 20E regulation. Acetylated FOXO at K180 and K183 catalyzed by KAT8 promotes gene transcription for autophagy. 20E via FOXO promotes Kat8 transcription. Knockdown or overexpression of FOXO appeared to give similar results as knockdown or overexpression KAT8. Therefore, FOXO upregulates KAT8 expression and recruits KAT8 to the promoter region of Atg8, where the KAT8 induces H4 acetylation to promote Atg8 transcription for autophagy under 20E regulation. This study reveals the mechanism that KAT8 to promote transcription of a specific gene.