What are the two basic categories of an ecosystem?

 The two basic categories of an ecosystem are aquatic and terrestrial.