Current climate change is leading to increasingly unpredictable environmental conditions and is imposing new challenges to wildlife. For example, ambient conditions fluctuating during critical developmental periods could potentially impair the development of cognitive systems and may therefore have a long-term influence on an individual’s life. We studied the impact of temperature variability on zebra finch cognition, focusing on song learning and song quality (N = 76 males). We used a 2 × 2 factorial experiment with two temperature conditions (stable and variable). Half of the juveniles were cross-fostered at hatching to create a mismatch between pre- and posthatching conditions, the latter matching this species’ critical period for song learning. We found that temperature variability did not affect repertoire size, syllable consistency, or the proportion of syllables copied from a tutor. However, birds that experienced variable temperatures in their posthatching environment were more likely to sing during recordings. In addition, birds that experienced variable prenatal conditions had higher learning accuracy than birds in stable prenatal environments. These findings are the first documented evidence that variable ambient temperatures can influence song learning in zebra finches. Moreover, they indicate that temperature variability can act as a form of environmental enrichment with net positive effects on cognition.