Study of the behavioral responses of animals to their environment and how these behaviors are shaped by natural selection.