Gene regulation by AP-1 transcription factors in response to Jun N-terminal kinase (JNK) signaling controls essential cellular processes during development and in pathological situations. Here, we report genetic and molecular evidence that the histone acetyltransferase (HAT) Chameau and the histone deacetylase DRpd3 act as antagonistic cofactors of DJun and DFos to modulate JNK-dependent transcription during thorax metamorphosis and JNK-induced apoptosis in Drosophila. We demonstrate in cultured cells that DFos phosphorylation mediated by JNK signaling plays a central role in coordinating the dynamics of Chameau and DRpd3 recruitment and function at AP-1-responsive promoters. Activating the pathway stimulates the HAT function of Chameau, promoting histone H4 acetylation and target gene transcription. Conversely, in response to JNK signaling inactivation, DRpd3 is recruited and suppresses histone acetylation and transcription. This study establishes a direct link among JNK signaling, DFos phosphorylation, chromatin modification, and AP-1-dependent transcription and its importance in a developing organism.