Intermarriage was accepted in Arab society, though only if the husband was Muslim. It was a fairly common theme in medieval Arabic literature and Persian literature. For example, the Persian poet Nizami, who married his Central Asian Kipchak slave girl, wrote "The Seven Beauties" (1196). Its frame story involves a Persian prince marrying seven foreign princesses, who are Byzantine, Chinese, Indian, Khwarezmian, Maghrebian, Slavic and Tartar. "Hadith Bayad wa Riyad", a 12th-century Arabic tale from Al-Andalus, was a love story involving an Iberian girl and a Damascene man. The "Arabian Nights" tale of "The Ebony Horse" involves the Prince of Persia, Qamar al-Aqmar, rescuing his lover, the Princess of Sana'a, from the Byzantine Emperor who also wishes to marry her.