Muhammad ibn Idris al-Shafi'i (767-820) was one of Islam's foundational legal thinkers. Shafi'i considered law vital to social and cosmic order: the key obligation of each Muslim was to obey God. This study sketches his life in his intellectual and social context.