Stress is a powerful modulator of brain structure and function. While stress is beneficial for survival, inappropriate stress dramatically increases the risk of physical and mental health problems, particularly when experienced during early developmental periods. Here we focus on the neurobiology of the infant rat's odor learning system that enables neonates to learn and approach the maternal odor and describe the unique role of the stress hormone corticosterone in modulating this odor approach learning across development. During the first nine postnatal days, this odor approach learning of infant rats is supported by a wide range of sensory stimuli and ensures attachment to the mother's odor, even when interactions with her are occasionally associated with pain. With maturation and the emergence of a stress- or pain-induced corticosterone response, this odor approach learning terminates and a more adult-like amygdala-dependent fear/avoidance learning emerges. Strikingly, the odor approach and attenuated fear learning of older pups can be re-established by the presence of the mother, due to her ability to suppress her pups' corticosterone release and amygdala activity. This suggests that developmental changes in stress responsiveness and the stimuli that produce a stress response might be critically involved in optimally adapting the pup's attachment system to its respective ecological niche.