Айюбиды
Throughout the era of the Ayyubid dynasty (1171–1250), the Cairo Citadel became the headquarters and the center of power. Legislative and judicial councils diversified, and there was a justice council and another to attend to complaints lodged. Their duties involved laws as well as treaties with foreign countries