Animals engage in a wide variety of behaviors, interactions with the world, and with other living organisms around them, that have evolved through natural selection. For instance, foraging behavior, the way animals obtain food, is adapted to the environment, and provides energy and nutrients necessary for survival. Social behaviors, interactions between individuals in a population, are another important type of behavior. For example, some animals communicate to each other to warn about danger, increasing the chance of survival for the group, and its genes as a whole. Behaviors related to reproduction, such as the selection of a healthy mate, and the care of offspring, are also critical, since they help ensure that an individual's genes will be successfully passed down to future generations.