The return of an ecosystem or habitat to its original community structure, natural complement of species, and natural function.