 Vushmgir, with the aid of 30,000 Samanid troops under their general Qaratakin, captured Gurgan in 945, and set forth to conquer the rest of Tabaristan.Al-Hasan then fled to a fortress, where he could prepare for a counter-attack.Vushmgir, however, managed to defeat al-Hasan and capture the fortress.