Ecology studies the relationships between organisms and their environment, focusing on ecosystems, biodiversity, and the impact of human activities on nature.