Karim Khan Zand (1750-1779) is finally able to defeat his rivals and unify the country, except for Khorasan, under a loose form of central control. He refuses to assume the title of shah, however, preferring to rule as vakil al ruaya, or deputy of the subjects. He is remembered for his mild and beneficent regime.