The Sultan Hassan Mosque and madrasa (School) is considered stylistically the most compact and unified of all Cairo monuments. The building was constructed for Sultan Hassan bin Mohammad bin Qala'oun in 1256 AD as a mosque and religious school for all sects. It was designed so that each of the four main Sunni sects (orthodox Muslim, or Sunni rites, consisting of Shafite, Malikite, Hanefte and Hanbalite) has its own school while sharing the mosque.