Bagrat IV (; 101824 November 1072), of the Bagrationi dynasty, was the King of Georgia from 1027 to 1072. During his long and eventful reign, Bagrat sought to repress the great nobility and to secure Georgia's sovereignty from the Byzantine and Seljuq Empires. In a series of intermingled conflicts, Bagrat succeeded in defeating his most powerful vassals and rivals of the Liparitid family, bringing several feudal enclaves under his control and reducing the kings of Lorri and Kakheti, as well as the emir of Tbilisi to vassalage. Like many medieval Caucasian rulers, he bore several Byzantine titles, particularly those of nobelissimos, curopalates, and sebastos. Early reign Bagrat was the son of the king George I () by his first wife Mariam of Vaspurakan. At the age of three, Bagrat was surrendered by his father as a hostage to the Byzantine emperor Basil II () as a price for George's defeat in the 1022 war with the Byzantines. The young child Bagrat spent the next three years in the imperial capital of Constantinople and was released in 1025. He was still in Byzantine territory when Basil died and was succeeded by his brother Constantine VIII (). Constantine ordered the retrieval of the young prince, but the imperial courier was unable to overtake Bagrat – he was already in the Georgian kingdom. After George I died in 1027, Bagrat, aged eight, succeeded to the throne. Queen Dowager Mariam then returned to prominence and became a regent for her underage son. She shared the regency with the grandees, particularly Liparit IV, Duke of Trialeti, and Ivane, Duke of Kartli. By the time Bagrat became king, the Bagratids’ drive to complete the unification of all Georgian lands had gained irreversible momentum. The kings of Georgia sat at Kutaisi in western Georgia from which they ran all of what had been the Kingdom of Abkhazia and a greater portion of Iberia/Kartli; Tao/Tayk had been lost to the Byzantines while a Muslim emir remained in Tbilisi and the kings of Kakheti obstinately defended their autonomy in easternmost Georgia. Furthermore, the loyalty of great nobles to the Georgian crown was far from stable. During Bagrat's minority, the regency had advanced the positions of the high nobility whose influence he subsequently tried to limit when he assumed full ruling powers. Simultaneously, the Georgian crown was confronted with two formidable external foes: the Byzantine Empire and the rising Seljuq