Nyctinasty

Nyctinasty is the circadian rhythmic nastic movement of higher plants in response to the onset of darkness. Examples are the closing of the petals of a flower at dusk and the sleep movements of the leaves of many legumes.
Nyctinastic movements are associated with diurnal light and temperature changes and controlled by the circadian clock and the light receptor phytochrome. Several leaf-opening and leaf-closing factors have been characterized biochemically. The earliest observation of this behavior in plants dates back to 324 BC when Androsthenes, a companion to Alexander the Great, noted the opening and closing of tamarind tree leaves from day to night.