The process of repairing or rehabilitating an ecosystem that has been damaged by human or natural causes.