After the death of their father, his brothers
Krešimir III and
Gojslav started organizing a rebellion against him since Svetoslav rejected sharing power over the kingdom. The brothers had asked Bulgarian emperor
Samuil for aid, even though the emperor was at war with the
Byzantine Empire. In the war, the Byzantines were supported by
Venice and Svetoslav Suronja, who had continued his father's policy. Samuil had accepted the revolters' invitation and attacked Croatia in 998, which started the last of three
Croatian-Bulgarian wars. In his rampage, he took all of Croatian Dalmatia up to Zadar after which he ended his rampage, returning home to Bulgaria through Bosnia. Samuil gave all the territory he took to the revolters
Krešimir and
Gojslav. Using this newly gained territory and further Bulgarian aid, the brothers overthrew their elder brother, Svetoslav Suronja, and became rulers of Croatia. ==War with Venice==