Following David III's death in 1001, his domain was inherited by emperor of Byzantine Basil II, these provinces were organized into the theme of Iberia with the capital at Theodosiopolis, forcing the successor Georgian Bagratid ruler Bagrat III to recognize the new rearrangement. Bagrat's son, George I, however, inherited a longstanding claim to David's succession. Young and ambitious, George launched a campaign to restore the Kuropalates’ succession to Georgia and occupied Tao in 1015–1016. Byzantines were at that time involved in a relentless war with the Bulgarian Empire, limiting their actions to the west. But as soon as Bulgaria was conquered, Basil II led his army against Georgia (1021). An exhausting war lasted for two years, and ended in a decisive Byzantine victory, forcing George to agree to a peace treaty, in which he had to abandon his claims to Tao.