Marine environments exhibit greater species diversity than continental ecosystems due to the ocean's vast size, longer evolutionary history, and wide variety of habitats from coastal zones to deep trenches. The ocean contains representatives of nearly all phyla, while terrestrial environments have more limited diversity.