However, there was competition between Qatar, one of the richest countries per head of population in the world, and Saudi Arabia for leadership of Gulf international diplomacy long before the Arab Spring began. Apart from its links to the Brotherhood, many of whose Egyptian leaders have been granted asylum in Qatar since it was driven out of office and banned as a terrorist group by the military-backed coup in Cairo, its attempts to maintain links with Iran have also been deeply opposed by Riyadh.