Prenatal caffeine exposure (PCE) can induce testicular developmental toxicity. Here, we aimed to explore the underlying mechanism of this process in reference to its intrauterine origin. Pregnant rats were intragastrically administrated caffeine (30 and 120 mg/kg/day) from gestational days 9 to 20. The results showed that the male fetuses exposed to high dose of caffeine (120 mg/kg/day) had a decreased bodyweight and inhibited testosterone synthetic function. Meanwhile, their serum corticosterone concentration was elevated and their testicular insulin-like growth factor 1 (Igf1) expression was decreased. Moreover, the histone 3 lysine 14 acetylation (H3K14ac) level in the Igf1 promoter region was reduced. Low-dose (30 mg/kg/day) caffeine exposure, however, increased steroidogenic enzymes expression in male fetuses. After birth, the serum corticosterone concentration gradually decreased in the PCE (120 mg/kg/day) offspring rats, whereas the expression and H3K14ac level of Igf1 gradually increased, with obvious catch-up growth and testicular development compensation. Intriguingly, when we subjected the offspring to 2 weeks of chronic stress to elevate the serum corticosterone concentration, the expression of Igf1 and testosterone synthesis were inhibited again in the PCE (120 mg/kg/day) group, accompanied by a decrease in the H3K14ac level in the Igf1 promoter region. In vitro, corticosterone (rather than caffeine) was proved to inhibit testosterone production in Leydig cells by altering the H3K14ac level and the expression of Igf1. These observations suggested that PCE-induced testicular developmental toxicity is related to the negative regulation of corticosterone on H3K14ac levels and the expression of Igf1.