1. Ahmad Sanjar was a son of Malik Shah I and participated in wars of succession against his three brothers and a nephew, namely Mahmud I, Barkiyaruq, Malik Shah II and Muhammad I In 1096, he was given the province of Khorasan to govern under his brother Muhammad I Over the next several years Ahmad Sanjar became the ruler of most of Iran with his capital at Nishapur.