Study of the interactions between organisms and their environment and how they have evolved over time.