Fatimid Caliphate
When Cairo became the capital of the Fatimid Caliphate (969–1171) governance and legislation had developed. Furthermore, the city of Cairo became the capital of Egypt and the Islamic Caliphate.