The following is the Times Higher Education world university ranking 2021:
According to this ranking, Iranian universities rank higher than that of Turkey.
Is there any specific reason, given that Iran is under sanction for years, and almost disconnected from the western world. On the other hand, Turkey is well-connected to the EU and Bologna process?