 While al-Hasan supported the Buyids, Voshmgir relied on his Samanid allies.Tabaristan and Gorgan changed hands several times until 955, when in a treaty with the Samanids, Rukn al-Dawla promised to leave Voshmgir alone in Tabaristan.Peace between the two sides did not last long, however; in 958 Voshmgir briefly occupied Ray, which was Rukn al-Dawla's capital.