Khazaria was between the Byzantine Empire, the steppe nomads, and the Umayyad Caliphate. It helped Byzantine defend itself from the Sasanian Persian empire. The alliance ended around 900. Between 965 and 969, the Kievan Rus replaced Khazaria.