Task: Question Generation
Input (English): The rapid expansion of the Rus' to the south led to conflict and volatile relationships with the Khazars and other neighbors on the Pontic steppe. The Khazars dominated the Black Sea steppe during the 8th century, trading and frequently allying with the Byzantine Empire against Persians and Arabs. In the late 8th century, the collapse of the Göktürk Khaganate led the Magyars and the Pechenegs, Ugric and Turkic peoples from Central Asia, to migrate west into the steppe region, leading to military conflict, disruption of trade, and instability within the Khazar Khaganate. The Rus' and Slavs had earlier allied with the Khazars against Arab raids on the Caucasus, but they increasingly worked against them to secure control of the trade routes.
Output (English): Who were common enimies to both the Khazars and Byzantine Empire?