The Sallarids were Daylamites[3][4][5] who, probably in the later 9th century, gained control of Shamiran, a mountain stronghold about twenty-five miles north of Zanjan.
However, he was captured in a war with the Buwayhid Rukn al-Daula and control of Azerbaijan was fought over between Muhammad bin Musafir, Wahsudan, the Buyids, and Daisam.
Eventually, Marzuban escaped and reestablished control over Azerbaijan and made peace with Rukn al-Daula, marrying off his daughter to him.
According to ibn Miskawaih, the local people broke the peace by stone-throwing and other abuse directed against the Rus', who then demanded that the inhabitants evacuate the city.
The Rus' stayed in Bardha'a for several months, using it as a base for plundering the adjacent areas and amassed substantial spoils.
After that, the territory of Sallarids became the place of a ruthless struggle for power between Marzuban's brother Vahsudan, his sons, and Deysam Sajid.
This momentary weakness in the central administration allowed the Rawadids and Shaddadids to take control of the areas to the northeast of Tabriz and Dvin, respectively.
Unable to establish his rule in the province, Wahusdan returned to Tarum; Justan was recognized as ruler in Azerbaijan, with his brother Ibrahim I ibn Marzuban I made governor of Dvin.
Justan seems to have been interested primarily in his harem, a fact which alienated some of his supporters, although he and Ibrahim successfully put down a revolt by al-Mustajir bi-llāh, grandson of the caliph al-Muktafi in 960.
Shortly afterward Justan and another brother, Nasir, came to Tarum, where they were treacherously imprisoned by Wahsudan, who sent his son Isma'il to take over Azerbaijan.
Ibrahim raised an army in Armenia to oppose Isma'il, prompting Wahsudan to execute Justan, his mother and Nasir.
Nuh died before 989; in that year the Buwayhid Fakhr al-Daula married his widow and then divorced her, taking Shamiran in the process.
In 997, after Fakhr al-Daula died, Ibrahim b. Marzuban b. Isma'il took advantage of the weakness of his successor to seize control of Shamiran, Zanjan, Abhar, and Suharavard.