喀喇汗国
After Alp Tigin's death in 963, Abu Ishaq Ibrahim, followed by his slave Sabuktigin, took the throne. Sabuktigin's son Mahmud of Ghazni made an agreement with the Kara-Khanid Khanate whereby the Amu Darya was recognised as their mutual boundary.