[2] After the new Bulgarian Emperor Ivan Vladislav, who in 1015 assassinated Samuil's son and heir Gavril Radomir, had unsuccessfully tried to make an agreement with Basil II,[3] he organized the defense of the country.
Basil II himself managed to capture several minor Bulgarian castles but all attempts to seize Kastoria remained futile.
Basil II again invaded Bulgaria and took the small fortress of Setina located between Ostrovo and Bitola to the south of the river Cherna.
Basil II sent strong units under Diogenes to repulse the Bulgarians but the troops of the Byzantine commander were ambushed and cornered.
The Bulgarians attacked the Adriatic port of Dyrrhachium and after Ivan Vladislav's death under the walls of the city the resistance finally broke.