Niche partitioning occurs when natural selection drives species to specialize in different resources or habitats to reduce competition. This can happen in several ways: species might eat different foods (dietary partitioning), hunt at different times (temporal partitioning), or use different parts of the same tree or reef (spatial partitioning). By 'dividing up' the available resources, many similar species can live in the same area simultaneously, which increases the overall biodiversity of the ecosystem and prevents one species from outcompeting all others.
In simple words
When different animals share a home by using different parts of it or eating at different times so they don't fight.
In the wild
A classic example is found in North American forests, where several species of warblers live in the same spruce trees. Instead of fighting, one species feeds only at the very tips of the top branches, another stays in the middle, and a third hunts near the trunk. Similarly, in the African savanna, zebras, wildebeest, and gazelles all eat grass, but they prefer different parts of the plant or different stages of its growth, allowing them to graze together in massive mixed herds.
Example
Diurnal hawks and nocturnal owls perform niche partitioning by hunting the same rodents at different times of day.
Species examples
Not yet on Biospedia
Cape May Warbler
Setophaga tigrina
Feeds at the very top of trees to avoid competition with other warblers.