 He did so in the hopes that Shah Malik would overthrow Harun's successor, Isma'il, who had become an enemy of the Ghaznavids.In the winter of 1040/1041 Shah Malik led his forces across the desert into Khwarazm.After fighting a long battle against Isma'il's troops he emerged victorious, forcing Isma'il to flee.