during the following centuries it became victim of foreigners