Ecology is a study of the relationships within any given ecosystem. Between organisms and other organisms and organisms with abiotic factors (non-living things). Biology is a general field of study of life on Earth; how it originated, how it functions etc.