An ecosystem is a natural habitat where plants, animals and micro-organisms all live together in the same environment. For example, a meadow habitat includes foxes, the rabbits on which they feed, the grasses on which the rabbits feed etc.