The Danishmends held the area until the 1170s, when it passed into the hands of the Saltukids of Erzurum.