A good example of resource partitioning is the interacting of several species of Caribbean anoles in the same environment. Although several species may live in the same forest, each restricts its habitat to a particular part of the forest, such as the tree canopies or tree trunks.
Resource partitioning occurs when species have similar habitats and needs, but do not want to compete for those same resources. They instead find a way to use the limiting resources separately. The idea of resource partitioning has been explained by several experiments and mathematical models that have shown if both species use the same limited resource in the same manner, only one species continues to thrive.