An ecosystem is a community of living organisms interacting with their physical environment. It includes biotic components (plants, animals, microorganisms) and abiotic components (air, water, soil, sunlight). Ecosystems can be natural (forests, rivers) or artificial (aquariums, gardens), and they maintain ecological balance by supporting food chains and nutrient cycles.