In the late 10th century, the greatest threat to Greece was from Samuel, who constantly fought over the area with Basil II. In 985, Samuel captured Thessaly and the important city of Larissa, and in 989, he pillaged Thessalonica. Basil slowly began to recapture these areas in 991, but Samuel captured the areas around Thessalonica and the Peloponnese again in 997 before being forced to withdraw to Bulgaria. In 999, Samuel captured Dyrrhachium and raided northern Greece once more. Basil recaptured these areas by 1002 and had fully subjugated completely the Bulgarians in the decade before his death (see Byzantine conquest of Bulgaria).