His adversary, Şerif Paşa, was able to dispossess him in June 1809, but Selim staged a comeback in 1812. His staunch opposition to the central Ottoman government led him into clandestine negotiations with the Russians through Mamia V Gurieli, Prince of Guria, whose sister was married to Selim's son Abdi Bey. In 1815, the sultan ordered him be deposed and put to death for treason.