Soon after the war ended and travel became possible, he was drawn back to North Africa, settling in Tangier Morocco. He shifted his main orientation to writing, producing a classic novel, The Sheltering Sky, in 1949. From then on, most of his efforts were in the literary field, although he continued to compose. Although based in North Africa, his penchant for exotic places led him to travel widely. He died of a heart attack in Tangier.