During the Ottoman era, (1517-1805) Islamic courts constituted the judicial system.
As a result of the mounting resistance against the Ottoman ruler, the Wali and (Mamluks), Egypt was on the verge of a massive revolt.