WHAT IS A HABITAT? A habitat is an enviorment where animals choose to survive and build their homes. They get all of the things that they need to survive in their habitat.
WHAT IS AN ECOSYSTEM? An ecosystem can be many different sizes, it is any group of living and nonliving things that are interacting but don't rely on eachother. Each organism in there has it's own "role to play".
Habitats and Ecosystem have a lot in common. Their crucial difference makes it sometimes confusing to tell their differences. Habitats are where animals get what they need to survive, and an ecosystem has living and nonliving things that don't rely on each other.