Branimir's (879–892) own actions were approved from the Holy See to bring the Croats further away from the influence of Byzantium and closer to Rome. Duke Branimir wrote to Pope John VIII affirming this split from Byzantine and commitment to the Roman Papacy. During the solemn divine service in St. Peter's church in Rome in 879, Pope gave his blessing to the duke and the whole Croatian people, about which he informed Branimir in his letters, in which Branimir was recognized as the Duke of the Croats ("Dux Chroatorum"). During his reign, Croatia retained its sovereignty from both Holy Roman imperial and Byzantine rule, and became a fully recognized state. After Branimir's death, Prince Muncimir (892–910), Zdeslav's brother, took control of Dalmatia and ruled it independently of both Rome and Byzantium as "divino munere Croatorum dux" (with God's help, duke of Croats). In Dalmatia, duke Tomislav (910–928) succeeded Muncimir. Tomislav successfully repelled Magyar mounted invasions of the Arpads, expelled them over the Sava River, and united (western) Pannonian and Dalmatian Croats into one state.