The extreme Islamist version of history blames the decline from Islam's golden age on the rulers and people who turned away from the true path of their religion, thereby leaving Islam vulnerable to encroaching foreign powers eager to steal their land, wealth, and even their souls.
The biased historical recall says that Islamic decline is due to leadership becoming less pious.