Among the medieval authors born within the territorial limits of modern Azerbaijani Republic was Persian poet and philosopher Nizami, called Ganjavi after his place of birth, Ganja, who was the author of the Khamseh ("The Quintuplet"), composed of five romantic poems, including "The Treasure of Mysteries," "Khosrow and Shīrīn," and "Leyli and Mejnūn."