Demetrios Chomatenos or Chomatianos, Eastern OrthodoxArchbishop of Ohrid from 1216 to 1236, was a Byzantine priest and judge. His comprehensive legal education allowed him to exert substantial influence as judge, arbiter, confessor and advisor to the Byzantine imperial house. This makes him a characteristic representative of a time where judicial power was devolving from the weakened secular authorities to the Church, and also one of the last legal practitioners in full command of Justinian's laws as recovered by the Macedonian legal renaissance. According to the eminent Byzantinist Donald Nicol, Chomatenos' court at Ohrid was a rare centre of stability and law in an uncertain and tumultuous era; "From Kerkyra in the west to Drama in the east, from Dyrrachion in the north to Ioannina and Arta in the south, plaintiffs and defendants brought their problems to the humane and learned Archbishop". Some 150 of Chomatenos' case files have survived, allowing legal historians to construct a reasonably complete picture of the legal and institutional framework of the late Byzantine Empire. He also played an important role in the rivalry of the two main post-Fourth Crusade Byzantine Greeksuccessor states, the Empire of Nicaea and Epirus. Along with John Apokaukos and George Bardanes, Chomatianos championed the Epirote cause of political and ecclesiastical independence from Nicaea, and in 1225 or 1227, it was he who crowned the Epirote ruler Theodore Komnenos Doukas as Byzantine Emperor in Thessalonica. An important ecclesiastical and jurisdictional dispute arose soon after his arrival in Ohrid. In that time, the Eastern Orthodox eparchies in Serbia were still under the jurisdiction of the Archbishop of Ohrid. That changed in 1219, when Patriarch Manuel I of Constantinople, created a new Archbishopric for Serbia by appointing Sava Nemanjić as the first Serbian Archbishop. Demetrios Chomatenos protested and in the spring of 1220 he sent bishop Jovan of Skopje as an envoy to Archbishop Sava, but with no result. Serbia was lost to his jurisdiction, and his later attempts to remedy the situation in 1233 were also unsuccessful.