Ibn Tufail
The Islamic philosophers, Ibn Tufail (Abubacer) and Ibn al-Nafis, were pioneers of the philosophical novel. Ibn Tufail wrote the first fictional Arabic novel "Hayy ibn Yaqdhan" ("Philosophus Autodidactus") as a response to al-Ghazali's "The Incoherence of the Philosophers", and then Ibn al-Nafis also wrote a fictional novel "Theologus Autodidactus" as a response to Ibn Tufail's "Philosophus Autodidactus". Both of these novels had protagonists (Hayy in "Philosophus Autodidactus" and Kamil in "Theologus Autodidactus") who were autodidactic individuals spontaneously generated in a cave and living in seclusion on a desert island, both being the earliest examples of a desert island story. However, while Hayy lives alone on the desert island for most of the story in "Philosophus Autodidactus", the story of Kamil extends beyond the desert island setting in "Theologus Autodidactus", developing into the first example of a science fiction novel.