He developed friendly relations with the Golden Horde and the Bahri dynasty of Egypt, and repulsed the Ilkhanate attacks. In 1269, David gave shelter to Teguder, relative of the Chagatai Baraq Khan, who had rebelled against the Ilkhan ruler Abaqa Khan. When Teguder’s force began terrorizing the Georgian population, David sided with Abaqa’s general Shiramun Noyan. Despite this, Abaqa attempted to overthrow David with the help of the renegade lord of Racha Kakhaber Kakhaberisdze, and sent two expeditions against Imereti in the 1270s. Nevertheless, David VI Narin succeeded in retaining his independence and attempted to restore Georgian influence in the Empire of Trebizond. For this purpose, he marched to Trebizond during Emperor John II Comnenus’ absence at Constantinople in April 1282; and although he failed to take the city, the Georgians occupied several provinces and helped John’s half-sister Theodora, daughter of Manuel I of Trebizond by his Georgian wife, Rusudan, seize the throne in 1285, only to be put suddenly to flight.