 For the next nine years, until 1274, he engaged in study and contemplation in relative solitude.He read extensively in both Latin and Arabic, learning both Christian and Muslim theological and philosophical thought.Between 1271 and 1274 Llull wrote his first works, a compendium of the Muslim thinker Al-Ghazali's logic and the "Llibre de contemplació en Déu" ("Book on the Contemplation of God"), a lengthy guide to finding truth through contemplation.