Toll-like receptors (TLRs) play pivotal role in the pathogenesis of allergic airway diseases such as asthma. TLR9 is one of the most extensively studied TLRs as an approach to treat asthma. In this study, we investigated the role of TLR9 in the allergic airway inflammation and the underlying mechanism. Wild-type (WT) mice and TLR9(-/-) mice were sensitized and challenged with OVA to establish allergic airway disease model. We found that the expression of TLR9 was elevated concomitantly with airway inflammation post-OVA challenge, and TLR9 deficiency effectively inhibited airway inflammation, including serum OVA-specific immunoglobulin E (IgE), pulmonary inflammatory cell recruitment, mucus secretion, and bronchoalveolar lavage fluid (BALF) inflammatory cytokine production. Meanwhile, the protein expression of hydroxyindole-o-methyltransferase (HIOMT) in lung tissues, the level of melatonin in serum, and BALF were reduced in OVA-challenged WT mice, while these reductions were significantly restored by TLR9 deficiency. Additionally, we showed that although TLR9 deficiency had no effect on OVA-induced phosphorylation of JNK, inhibition of JNK by specific inhibitor SP600125 significantly decreased OVA-induced expression of TLR9, suggesting that JNK is the upstream signal molecular of TLR9. Furthermore, SP600125 treatment promoted resolution of allergic airway inflammation in OVA-challenged WT mice, but not further ameliorated allergic airway inflammation in OVA-challenged TLR9(-/-) mice. Similarly, SP600125 significantly restored the protein expression of HIOMT and the level of melatonin in OVA-challenged WT mice, while such effect was not further enhanced by TLR9 deficiency. Collectively, our results indicated that JNK-TLR9 signal pathway mediates allergic airway inflammation through suppressing melatonin biosynthesis.