The Magyars had settled in the Carpathian basin in 895. Emperor Leo had employed the Magyars against the Bulgars in 894, during the Byzantine-Bulgarian Wars. In the years following, the Magyars mainly concentrated on the lands to the west of their realm. In 934 and 943 the Magyars raided far into the Balkans, deep into Byzantine Thrace.