This Is a Certified Answer

A niche is a role that an organism plays in an ecosystem. For example, producers in an ecosystem take solar energy and convert it into food for themselves. Then other animals can consume the producers, and the energy is moved up the food chain. In this way, all the organisms in an ecosystem or habitat support one another, either by providing food, energy, or protection from predators. This sustains the organisms, and helps the organisms reproduce abundantly. Different niches require organisms to help/harm different species, so the distribution of animals and plants depends on the role they play in the ecosystem. 
Hope this helps!