(
Ulu Cami) portal (1228–1229) (1228–1229). Little is known about the founder Mengüjek Ghazi. He was probably one of the commanders of the
Great Seljuk, and his principality seems to have been founded in the years following the battle. The beylik was split into the Erzincan and Divriği branches after the death of Emir İshak in 1142. By 1178, Behramşah, of the Erzincan branch, had proved their allegiance to the
Rum Seljuks through marriage. While the Divriği branch under Şahinşah, recognized the Sultanate of Rum as their overlords by declaring it on their copper coins. The Erzincan branch was subjugated by the
Sultanate of Rum in 1228, and the Divriği branch was ended by the
Ilkhanate in 1277. ==Divriği Great Mosque==