The decisions of the Council of Preslav brought an end to the Byzantine hopes to exert influence over the newly Christianized country. In 894 the Byzantines moved the Bulgarian market from Constantinople to Thessaloniki, affecting the commercial interests of Bulgaria and the principle of Byzantine–Bulgarian trade, regulated under the Treaty of 716 and later agreements on the most favoured nation basis. The new Prince, Simeon I (r.893–927), who came to be known as Simeon the Great, declared war and defeated the Byzantine army in Thrace. The Byzantines turned for aid to the Magyars, who at the time inhabited the steppes to the north-east of Bulgaria. The Magyars scored two victories over the Bulgarians and pillaged Dobrudzha but SimeonI allied with the Pechenegs further east and in 895 the Bulgarian army inflicted a crushing defeat on the Magyars in the steppes along the Southern Bug River. At the same time, the Pechenegs advanced westwards and prevented the Magyars from returning to their homeland. The blow was so heavy that the Magyars were forced to migrate west, eventually settling in the Pannonian Basin, where they eventually established the Kingdom of Hungary. In 896 the Byzantines were routed in the decisive battle of Boulgarophygon and pleaded for peace that confirmed the Bulgarian domination of the Balkans, restored the status of Bulgaria as a most favoured nation, abolished the commercial restrictions and obliged the Byzantine Empire to pay annual tribute. The peace treaty remained in force until 912 although SimeonI did violate it following the sack of Thessaloniki in 904, extracting further territorial concessions in Macedonia.