Nizam al-Mulk
Kunduri's third scheme was against the Abbasid caliph al-Qa'im (), whom he successfully convinced to accept a marriage between the latters daughter and Tughril. After the death of Tughril in 1063, Kunduri attempted to install his infant nephew Sulayman (a son of Chaghri Beg) on the throne. It was, however, Chaghri Beg's more competent and elder son Alp Arslan, who ruled Khurasan that ultimately ascended the throne. Kunduri was initially kept as vizier, but at the instigation of his peer Nizam al-Mulk, Alp Arslan had Kunduri imprisoned on 31 December 1063, and executed the following year, on 29 November 1064. Kunduri was succeeded by Nizam al-Mulk.