The valley of Manglisi appears in possession of the Juansheriani family, a branch of the former royal dynasty of Chosroids of Iberia, in the middle of the 8th century, and then of the Liparitids, whose one member Rati, a contemporary of Bagrat III (r. 978/1008–1014), is described by the Georgian chronicler to have held "the fortress of Ateni and all Kartli south of the Mtkuari, Trialeti, Manglis-khevi, and Skvireti." At the beginning of the 11th century, the cathedral of Manglisi, originally a tetraconch, was substantially reconstructed and refurbished. In 1121, the field of Didgori, not far from Manglisi, was a scene of the climactic victory of the Georgian king David IV over the Seljuq Turks. After a series of foreign invasions, more so following Timur's campaigns, the valley of Manglisi went into gradual decline. By the 1770s, it had been listed among the emptied eparchies of the Georgian church. The abandoned cathedral still stood there, undisturbed by Georgia's Muslim intruders because, as the 18th-century historian Prince Vakhushti claims, they thought one of the frescoes in the church depicted Muhammad seated upon a lion. The fresco is, in fact, an image of St. Mammes of Caesarea.