David VII, also known as David Ulu () (1215–1270), from the Bagrationi dynasty, was king of Georgia from 1247 to 1270, jointly with his namesake cousin, David VI, from 1247 to 1259, when David VI, revolting from the Mongol hegemony, seceded in the western moiety of the kingdom, while David VII was relegated to the rule of eastern Georgia. During his reign, Georgia went into further decline under the Mongol overlordship. Early life and diarchy David was a son of King Giorgi IV Lasha by a non-noble woman. Fearing that he would pretend to the throne, his aunt, Queen Rusudan held him prisoner at the court of her son-in-law, the sultan Kaykhusraw II for nearly seven years, and sent her son David to the Mongol court to get his official recognition as heir apparent. Following Kaykhusraw's defeat by the Mongols, David, son of Giorgi, was set free in 1242. In 1246, he was selected as king by the Georgian nobles who believed that his cousin David VI, son of Rusudan, had died in 1244. Following the coronation at Svetitskhoveli Cathedral, Mtskheta, he was sent to the Great Khan Güyük Khan to receive an official recognition. Held at Karakorum for five years, he met his cousin David there. Finally, Güyük Khan recognized David (Lasha Giorgi’s son) as senior joint sovereign and appointed another David (Rusudan’s son) junior co-ruler. Thereafter known as David VII Ulu (i.e. "the senior") and David VI Narin (i.e. "the junior"), the cousins ruled jointly for years. Decline of the kingdom In 1256, David Ulu with the Georgian auxiliaries took part in Mongol conquest of Alamut. In 1259, David Narin rose, unsuccessfully, against the Mongol yoke and, then, fled to Kutaisi, whence he reigned over western Georgia (Imereti) as an independent ruler. In 1260, Hulagu Khan requested that David Ulu supported him in the war against Egypt. David, remembering the Georgian losses at Baghdad (1258) refused to comply and revolted. A huge army of Mongols led by Arghun Noyan attacked the southern Georgian province of Samtskhe, defeated the king and his spasalar (general) Sargis Jakeli of Samtskhe, but could not capture the rebels’ main strongholds and left the country in June 1261. Nevertheless, the forces were unequal and David Ulu had to take refuge at his cousin, David VI Narin’s court at Kutaisi. His family was captured and David's wife Gvantsa killed by the Mongols. In 1262, he