The nervous system of animals serves the acquisition, memorization and recollection of information. Like animals, plants also acquire a huge amount of information from their environment, yet their capacity to memorize and organize learned behavioral responses has not been demonstrated. In Mimosa pudica-the sensitive plant-the defensive leaf-folding behaviour in response to repeated physical disturbance exhibits clear habituation, suggesting some elementary form of learning. Applying the theory and the analytical methods usually employed in animal learning research, we show that leaf-folding habituation is more pronounced and persistent for plants growing in energetically costly environments. Astonishingly, Mimosa can display the learned response even when left undisturbed in a more favourable environment for a month. This relatively long-lasting learned behavioural change as a result of previous experience matches the persistence of habituation effects observed in many animals.