In the last three decades of the 10th century, the Kingdom of Croatia was ruled by Stjepan Držislav, an ally of the Byzantine Empire, which in turn recognized him as the King of Croatia and Dalmatia. After his death in 997, his son and successor Svetoslav Suronja continued the pro-Byzantine policy of his father, but his younger brothers Krešimir and Gojslav started to organize a rebellion against him, since he rejected to share power over the Kingdom. The brothers asked Samuil, the new ruler of the Bulgarian Empire, also called the Western Bulgarian–Macedonian Empire, for help, knowing that he was at war with the Byzantine Empire. The Byzantines had conquered the north-eastern regions of the Bulgarian Empire in 971, including the capital Preslav, and in the beginning of his rule Samuil controlled only the western half of the country centred in the important province of Kutmichevitsa. At first he controlled only the Slavic Macedonians' lands at the southwestern part of the former large Bulgarian Empire, but later conquered a lot of Balkans. By 997, however, he had liberated north-eastern Bulgaria and pushed the Empire's borders south to include Thessaly. At the height of his power, Samuil accepted the proposal of Croatian rebel princes. He attacked Croatia in 998, starting the Third Croatian–Bulgarian war. In his military campaign, he took almost all of the Dalmatian coast of Croatia up to the Zadar area, including cities like Trogir and Split. King Svetoslav Suronja was forced to withdraw westwards, in the direction of Zadar.
Siege
Having taken the most of Dalmatia, Tsar Samuil turned his army further to the west and besieged the city of Zadar. It is not known whether King Svetoslav Suronja resided in the city during the siege and led the defence forces himself, but the large and thick stone city walls, as well as its defenders, resisted the attack and the siege failed. Having had no success, Samuil's army withdrew from the siege and then marched towards the Croatian hinterlands, including the territory which is now part of Bosnia and Herzegovina. Later the Bulgarian army returned home using the Bosnian route. Thus the third and last of three Croatian-Bulgarian wars came to its end.
Aftermath
The Croatian territory conquered by Samuil's forces during the campaign was taken over by Krešimir and Gojslav, who finally won the Croatian civil war and came to power in the Kingdom in 1000. Svetoslav Suronja, the Byzantine and Venetian ally, was forced into exile. When the Byzantines eventually conquered the Bulgarian Empire in 1018 after 50 years of bitter warfare, Krešimir and Gojslav became Byzantine vassals.