The study of how animals behave when competing for resources, including mating partners, food, and shelter.