The study of how animals behave in response to their environment, including their social interactions and mating behaviors.