An ecosystem is a complex network of living organisms (plants, animals, and microorganisms) and their physical environment, interacting as a functional unit. Ecosystems vary greatly in size and can be as large as a forest or as small as a pond. These systems rely on biodiversity to maintain balance and functionality.