The process by which ecosystems change over time, from their initial establishment to a mature, stable community.