The study of how ecosystems function and the steps needed to restore them after they have been disrupted.