The main aim of ecology is to understand the distribution of biotic and abiotic factors of living things in the environment. The biotic and abiotic factors include the living and non-living factors and their interaction with the environment.