أحمد سنجر
In 1118, the third son Ahmad Sanjar took over the empire. His nephew, the son of Muhammad I, did not recognize his claim to the throne, and Mahmud II proclaimed himself Sultan and established a capital in Baghdad, until 1131 when he was finally officially deposed by Ahmad Sanjar.