Abstract. Background: Exposure to music during pregnancy enhances brain development and improves learning in neonatal rats. Methods: In these experiments, we examined the effects of exposure to silence, hard rock, classical, and rap music in utero plus 60 days postpartum on learning and memory in adult Wistar rats. Passive avoidance learning (PAL) was assessed at age 60 days, and a retention test was done 24 hours after training. Elevated plus maze (EPM) was also used as a standard behavioral task for assessing the effects of music therapy on anxiety. Furthermore, we measured serum corticosterone levels and adrenal weight at the end of experiments to show the possible effect of stress on the rats’ behavior. Results: Hard rock music impaired acquisition, increasing the number of trials to acquisition in PAL task. Hard rock music also impaired the retrieval process by decreasing step-through latency and increasing time spent in the dark compartment during the retention trial. Further, in the hard rock group, there were increases in serum corticosterone and adrenal weight of rats. Classical music, in turn, improved acquisition learning and retention memory and decreased serum corticosterone levels compared to the silence group. Rats’ exposure to rap music did not show any significant change in acquisition and retrieval processes compared to the silence group. In the EPM task, classical music exposure had anxiolytic-like effects revealed in an increase in the number of entries into open arms and time spent in the open arms. However, in this task, hard rock music induced an anxiogenic effect. Conclusions: Prenatal and postnatal exposure to music improves PAL and memory in adult rats. The effects of music therapy with classical music might be related to stress reduction by lowering corticosterone as a stress biomarker or anxiolytic effects; this deserves further examination.