An ecosystem is a community of living organisms interacting with each other and with their physical environment, such as soil, water, and climate.