Opioid addiction causes some molecular alterations in the brain reward pathway, such as changes in gene expression that may be transferred to the next generation via epigenetic mechanisms such as histone acetylation. This study aimed to evaluate the effect of theophylline as an HDAC (Histone deacetylases) activator on D1 and D2 dopamine receptor expression in the nucleus accumbens (NAc) and anxiety behavior in the offspring of morphine-dependent female rats. Female rats were exposed to escalating doses of morphine for six days and were then treated with theophylline (20 mg/kg) or saline for 10 days before mating with normal male rats. Male and female offspring were tested for anxiety behavior using an elevated plus maze apparatus. Besides, the expression of D1 and D2 dopamine receptors in the NAc was evaluated by real-time PCR (polymerase chain reaction). Results showed that offspring of morphine-dependent female rats had increased expression of both D1 and D2 receptors in the NAc, as well as decreased anxiety behavior, compared to control offspring. However, the mentioned effects were returned to normal levels in the offspring whose morphine-dependent mothers had received theophylline for 10 days before mating. It is concluded that theophylline may be therapeutically effective in minimizing the adverse consequences of maternal morphine dependence on offspring behavior by restoring normal dopamine receptor expression levels and modulating anxiety. To completely comprehend the underlying mechanisms of this phenomenon, more research is required.