Complex sentence: He was one of Ahad Agha Shirvani's three sons, and Moustafa Khan Shirvani's grand son (Khan of Shirvan), descendant from Shirvan Shah who fought against Shah Esmaeil from Safavid Dynasty.
Split into simpler sentences: He was one of Ahad Agha Shirvani's three sons, and Moustafa Khan Shirvani's grand son (Khan of Shirvan). Mustafa Khan Shirvani was a descendant from the Shirvan Shah who fought against Shah Esmaeil from the Persian Safavid Dynasty.