Kara-Khanid invasion of Khorasan
The Kara-Khanid Khanate under Nasr Illig Khan and Yusuf Qadir Khan attempted to conquer the Khorasan, held by the Ghaznavid empire, in two phases in 1006 AD and 1008 AD. Despite initial successes, the Kara-Khanids were driven out of Khorasan, securing Ghaznavid rule of the region. == Background == In 998 AD, Mahmud of Ghazni sought to expand Ghaznavid control into Khorasan, but negotiations with Samanid Amir Mansur II failed.
Source: Wikipedia — Kara-Khanid invasion of Khorasan (CC BY-SA 4.0)