Complex sentence: In Safavid and Ozbakan period, Esfarayen was rushed and in Afshar time old Esfarayen was completely ruined and Esfarayen is one of the thriving cities of Khorasan.
Split into simpler sentences: In Safavid and Ozbakan period, Esfarayen was captured, and in Afshar time old Esfarayen was completely ruined. However, Esfarayen is now one of the thriving cities of Khorasan.