An ecosystem is a grouping of living things which interact with each other and the physical environment to form a semi-stable system.