Temperature has a variety of behavioral effects on organisms, which depend on and are determined by thermal physiology.
Such behaviors include microhabitat selection, which has advantages such as assimilation of specific nutrients, mate attraction, increase of longevity or even slowing down the development of parasites. Basking allows organisms to attain body temperatures ideal for specific functions, and increase the rate of egg production and gonad maturation. Even daily activity cycles can impact thermoregulation. For example, some flies in warm locations on Earth were found to be more active in the evening to avoid exposure of eggs to too high temperatures during the day.