Arabs and Khazars continued to clash sporadically in the North Caucasus in the 9th and 10th centuries, but warfare was localized and of far lower intensity than the great wars of the 8th century. Thus the Ottoman historian Münejjim Bashi records a period of warfare lasting from until 912, perhaps linked to the Caspian raids of the Rus' at about the same time, whom the Khazars allowed to pass through their lands unhindered. Indeed, for the Khazars, peace on the southern border became the more important as new threats emerged in the steppes to challenge their hegemony. The Khazar threat receded with the progressive collapse of Khazar power in the 10th century and defeats at the hands of the Rus' and other Turkic nomads like the Oghuz Turks. The Khazar realm contracted to its core around the lower Volga, and became removed from reach of the Arab Muslim principalities of the Caucasus. Thus Ibn al-Athir's reports of a war between the Shaddadids of Ganja with the "Khazars" in 1030 probably refers to the Georgians instead. In the end, the last Khazars found refuge among their former enemies. Münejjim Bashi records that in 1064, "the remnants of the Khazars, consisting of three thousand households, arrived in Qahtan in Dagestan from the Khazar territory. They rebuilt it and settled in it".