Hasanwayh

Hasanwayh supported the Buyids against the Samanids which enabled him in gaining some power.

He would ultimately control much of Lorestan, Dinavar, Nahavand, Daquq, Shahrazur and Hamadan and was powerful to such degree in which the Buyids refrained from disturbing him.

By 961, Hasanwayh managed to capture several fortresses, thus starting the Hasanwayhid dynasty.

In 970 he reached a compromise with Abu 'l-Fadl's successor which guaranteed his autonomy in return for a tribute of 50,000 dinars.

He also made an alliance with the Hamdanids prevailing in northern Iraq, and with Hasanwayh.