Shāfi'ī
The Shāfi'ī school became the official legal school of Egypt under the Ayyubids and remained influential under the Mamluks. In Damascus, the Shafi'i jurist al-Nawawi headed the Ashrafiyya hadith school from 1267 until his death in 1277.
Merchants carried Shafi'i jurisprudence across the Indian Ocean to India and Southeast Asia. In the sixteenth century, Ottoman expansion brought Hanafi judges in place of Shafi'i judges in territories under Ottoman rule.