The study of how organisms interact with their environment and how those interactions shape their evolution.