Yusuf ibn Tashfin
A total of about 70 works can be attributed to Al-Ghazali. He is also known to have written a fatwa against the Taifa kings of Al Andalus, declaring them to be unprincipled, not fit to rule and that they should be removed from power. This fatwa was used by Yusuf ibn Tashfin to justify his conquest of al-Andalus