Diurnality is a form of plant or animal behavior characterized by activity during the day, with a period of sleeping, or other inactivity, at night. The common adjective used for daytime activity is "diurnal". The timing of activity by an animal depends on a variety of environmental factors such as the temperature, the ability to gather food by sight, the risk of predation, and the time of year. Diurnality is a cycle of activity within a twenty-four-hour period; cyclic activities called circadian rhythms are endogenous cycles not dependent on external cues or environmental factors. Animals active at dawn or dusk are crepuscular, those active at night are nocturnal, and animals active at sporadic times during both night and day are cathemeral.
Plants that open their flowers during the day are referred to as diurnal, while those that bloom at night are nocturnal. The timing of flower opening is often related to the time at which preferred pollinators are foraging. For example, sunflowers open during the day in order to attract bees; the night-blooming cereus, in contrast, opens at night in order to attract large sphinx moths.
Many animal species are diurnal, including many mammals, insects, reptiles and birds. In some animals, especially insects, external patterns of the environment control the activity (exogenous rhythms, as opposed to patterns inherent in the habitat). Diurnality is descriptive; it refers to an observed 24-hour pattern, as opposed to ~24-hour circadian rhythms which are self-sustaining within the organism.
In many species, the animal switches from nocturnal to diurnal foraging depending on the environmental temperature. This allows the individual to maximize its feeding efficiency during the warmer summer and lower its risk of predation during the winter. Diurnal insects include some bees, such as Anthidium maculosum. These carder bees are diurnal and active only when the temperatures are above freezing. They are also `most active when there are plenty of resources such as flowers, from which they can extract pollen and nectar.