Generally speaking, environmental science is a broader field that incorporates many elements of earth and life sciences, whereas ecology is usually more focused on how organisms interact with each other and their surroundings, and often on a very specific population of living things.
IamSugarBee