خلاصه ماشینی:
"در ادامه، میکوشیم ضمن دو بخش،پارهای از آنچه را که دربارۀ مناسبات دین و دولت در دورۀ ایوبیان مورد توجه قرار دادیم با تفصیل بیشتری تبیین کنیم: مدارس،علوم دینی و حمایت از مذهب اهل سنت و جماعت مهمترین اقدام صلاح الدین برای تثبیت ایدئولوژی سنی حکومتش و نیز جلب نظر علما و حمایت ایشان از حکومت تازه و تنظیم روابط حکومت با علما،تأسیس مدارس و آموزشگاههای دینی از یکسو74و شکوفا کردن علوم دینی و تدریس و تدریس این علوم و تشویق برای تألیف آثاری در زمینههای مختلف این دانشها بود.
در اسکندریه که حتی در عصر فاطمیان مرکز سنیان و فعالیتهای آنان در مدارس خاص ایشان بود84،صلاح الدین برای شافعیان در سال 577 ق1181/ م مدرسهای بنا کرد85.
صلاح الدین برای تحکیم ایدئولوژی سنی حکومتش و در عین حال تنظیم روابط خود با نهاد علما و تثبیت منصب قضا، مذهب شافعی را به عنوان مذهب رسمی دولت،حمایت میکرد، گرچه ایوبیان دیگر مذاهب اربعه را نیز تأیید میکردند."