The study of how organisms interact with each other and their environment, and the patterns and processes of ecosystems.