The Kingdom of Georgia collapsed into anarchy by 1466 and fragmented into three independent kingdoms and five semi-independent principalities. Neighboring large empires subsequently exploited the internal division of the weakened country, and beginning in the 16th century up to the late 18th century, Safavid Iran (and successive Iranian Afsharid and Qajar dynasties) and Ottoman Turkey subjugated the eastern and western regions of Georgia, respectively.