Shahriar is the fictional Sassanid king in The Book of One Thousand and One Nights, who is told stories by Scheherazade (Shahrzad). He ruled over an empire from Persia to India, over all the adjacent Islands and a great way beyond the Ganges as far as China. Shahryar’s younger brother, Shah Zaman or Shaw-zummaun, ruled over Samarkand.
Shahryar is betrayed by his wife, which makes him go mad and believe that all women will, in the end, betray him. So every night for three years the mad king takes a wife and has her executed the next morning, until he marries the beautiful and clever Scheherazade, the vizier’s daughter. For 1001 nights, Scheherazade tells Shahryar a story, stopping at dawn with a cliffhanger, forcing him to keep her alive for another day so that she can complete the tale.
For 1001 nights this went on and, in the end, Shahryar spared her life (and the world benefited from her 1001 stories). The nucleus of these stories is formed by an old Persian book called Hezar-afsana or the "Thousand Myths".
The story of Scheherzade inspired the great Russian composer Rimsky- Korsakov to write a beautiful symphony by the name of "Scheherzade" which I strongly recommend to everyone!