This article examines the historical roots of juridical moral regulation in modern Egypt, assessing the relationship between modern law and shariʿa through the lens of the influence of the Islamic practice of ḥisba on courts and legislators. The article engages critically with scholarship on Islamic law and postcolonial theory regarding the impact of Western colonialism on law in Muslim societies and problematizes the understanding that shariʿa was secularized in the Egyptian legal culture through the translation of Western legal concepts. Instead, a different narrative is offered, one that recognizes the agency of local actors in the process of secularization and considers the influence of shariʿa in the legal development of contemporary Egypt.