sentences:  Their capital was Sari, and their rule extended over Gilan, Ray and Qumis as well as Tabaristan, although they were mostly vassals of the Seljuqs and later of the Khwarezmshahs.The line was ended in 1210 with the murder of Rustam V, and the Khwarezmshah Muhammad II took over direct control of the region.The third line or Kinakhwariyya was established in 1237 following the Mongol invasions and the widespread chaos that prevailed, and lasted, as a vassal of the Mongols, until the final end of the dynasty in 1349.