Shortly after 934, the Byzantine emperor Romanos I Lekapenos recognized the head of the Bulgarian Orthodox Church, Archbishop Damian, to the rank of patriarch, following the terms of the peace treaty that ended the Byzantine–Bulgarian war of 913–927. In 971, Emperor John I Tzimiskes dismissed Damian after annexing the capital city of Great Preslav and parts of northeast Bulgaria, but the Bulgarian patriarchate was probably restored under Tsar Samuel of Bulgaria. During his rule, the residence of the Bulgarian patriarchs remained closely connected to the developments in the war between Samuel and the Byzantine emperor Basil II. Thus, the next Patriarch German resided consecutively in Moglena (Almopia), Vodena (Edessa) and Prespa. Around 990, the last patriarch, Philip, moved to Ohrid.