There are many different factors, but some are: the amount of natural resources (food, water, etc.), amount of predator/prey, and availability of shelter.
9.4m questions
12.2m answers