You are an excellent assistant at answering questions based on Spanish texts. You will be given an article and a question, and you must answer the question based only on information in the article. The response should be extracted from the context verbatim.

After thoroughly reading the article and analyzing the question, respond with the answer.

Title:
Mesozoic

Context:
The Middle Triassic spans from 247 million to 237 million years ago. The Middle Triassic featured the beginnings of the breakup of Pangaea, and the beginning of the Tethys Sea. The ecosystem had recovered from the devastation that was the Great Dying. Phytoplankton, coral, and crustaceans all had recovered, and the reptiles began to get bigger and bigger. New aquatic reptiles evolved such as Ichthyosaurs and Nothosaurs. Meanwhile, on land, Pine forests flourished, bringing along mosquitoes and fruit flies. The first ancient crocodilians evolved, which sparked competition with the large amphibians that had since ruled the freshwater world.

Question:
From what had the ecosystem had to recover?

the Great Dying