 The first Zaidi state was established in Daylaman and Tabaristan (northern Iran) in 864 by the Alavids; it lasted until the death of its leader at the hand of the Samanids in 928.Roughly forty years later the state was revived in Gilan (north-western Iran) and survived under Hasanid leaders until 1126.After which from the 12th-13th centuries, the Zaidis of Daylaman, Gilan and Tabaristan then acknowledge the Zaidi Imams of Yemen or rival Zaidi Imams within Iran.