Khorshidi dynasty

The Khorshidi dynasty or Atabakan-e Lorestan was a Kurdish dynasty that ruled parts of Lorestan between 1155 and 1597 from Khorramabad. The dynasty stemmed from the Jangardi tribe (Jangrūʾī or Jangardī).
The rulers of Khorshidi dynasty were called Atabegs, with the word Atabeg resulting from the combination of the Turkish "ata" meaning "father", and "beg"/"bek"/"bak" meaning "great"/"big". Shah Abbas then assigned Hossein Beyg (also known as Hossein Khan) of the Silvizi clan, the nephew of Shahverdi Khan, and grandson of Jahangir Atabeg, to rule over Little Lorestan, thus replacing the Khorshidi dynasty with a Lorish dynasty known as the Vāli/Wāli dynasty in 1597.
Vāli Dynasty of Posht-e-Kuh.
The Vāli Dynasty was the successor to the Khorshidi Dynasty and lasted until the Shah of Iran Reza Shah removed the last Vali, Gholam Reza Khan, from power after deciding to take over the territory of what was then called Posht-e-kuh (in what is today's Ilam Province) by sending brigadier general Koupal to capture Posht-e-kuh. With general Koupal's capture of 
Ghaleh Vāli (Wāli/Vāli's Castle), the period of the Vāli dynasty was over after 744 years putting an end to the longest ruling local dynasty in the history of Iran.