A habitat is an ecological or environmental area that is inhabited by a particular species of animal, plant, or other type of organism. It is the natural environment in which an organism lives, or the physical environment that surrounds a species population. A habitat is where a plant or animal lives.
In ecology, a niche is a term describing the relational position of a species or population in its ecosystem to each other. The ecological niche describes how an organism or population responds to the distribution of resources and competitors and how it in turn alters those same factors. A nicheis a role an animal fills to keep the community healthy. A niche is how an organism makes a living. A niche is an animal’s job in an environment.
Examples: A giraffe's niche is feeding on the canopy on trees and its habitat is the Savannah. A squirrel's niche is eating acorns and its habitat is the forest A bee's niche is making honey, pollinating flowers, and drinking nectar and its habitat is a forest or a field. Examples are shown bleow.