Complex sentence: During the reign of the Safavid dynasty the monasteries prospered in the 15th century but during the period of attacks by the Ottomans, Armenians emigrated to Central Iran.
Split into simpler sentences: During the reign of the Safavid dynasty in the 15th century, the monasteries prospered. The monasteries were then deserted during the 16th and 17th centuries following a period of attacks by the Ottomans that prompted many Armenians to emigrate to central Iran.