Samuel proved to be a successful leader inflicting a major defeat on the Byzantine army commanded by Basil II at the Gates of Trajan and retaking north-eastern Bulgaria. His successful campaigns expanded the Bulgarian borders into Thessaly and Epirus and in 998 he conquered the principality of Duklja. In 997 Samuel was proclaimed Emperor of Bulgaria after the death of the legitimate ruler, Roman.