The correct answer is both abiotic and biotic factors.
Ecosystem diversity is influenced by a range of abiotic factors such as climate, soil composition, water availability, and physical geography, as well as biotic factors like species interactions, competition, predation, and available niches. Together, these factors shape the variety and abundance of ecosystems in different locations around the globe.