The Battle of Dandanaqan was fought in 1040 between the Seljuqs and the Ghaznavid Empire. The battle ended with a Seljuq victory and brought down the Ghaznavid domination in the Khorasan.