31. The Shaki and Shirvan khans withdrew, incurring huge casualties and failing to accomplish the mission. 32. His descendants, the Yazidids, would rule Shirvan as independent princes until the 14th century. 33. In the 13th and 14th centuries Shirvan was a vassal of stronger Mongol and Timurid empires. 34. Shirvanshahs Khalilullah I and Farrukh Yassar presided over most successful period in a history of Shirvan . 35. In this period there was a long feud that spanned southern Dagestan, Derbent and Shirvan . 36. At the beginning of the 12th century Seljuks were not able to hold on to Shirvan . 37. Hosseinpour s grandfather Mustafa Khan was a powerful landowner and a senior military commander in Shirvan . 38. "' Haji Muhammad Ali Khan Zarnavai "'was first khan of Shirvan . 39. Shirvan was taken by the Ottomans in 1578; however, Safavid rule was restored by 1607.40. During 1768 1789 the Shirvan khanate was occupied by the much stronger Quba Khanate and Shaki Khanate.