It is essential to study the traditional Islamic cities of the Maghreb area in order to build/rebuild or formulate new ones in the same area. This paper concentrates on two important factors which shaped the cities of the past: Law and Theme. By providing examples of the Maghreb area this paper draws our attention towards the past cities of all the culture. Islamic law has physically influenced the structure of the traditional cities of Maghreb area. Qur’an is the main source of the Islamic law and Sunnah is the second one. These two sources were enough during the life of the Prophet. But as Islamic world began to grow, the Muslims relied upon two further sources: Ijama (consensus) and Qiyas (analogy). Muftis (jurists) of the traditional Islamic cities have used these two sources to solve dispute at the urban settlements. This paper briefly discusses some urban disputes at Fes, Morocco and how the urban environment was shaped by law. In order to do that, a number of cases and judgments relating to urban disputes are presented. The fatwas (judgements) were issued after taking Mas’ahah (public interest) and Urf (Custom) into consideration. The paper also proposes to consider ‘time’ if we are to apply it to the contemporary cities. The cases presented here are originally recorded in Kitab al-Mi’yar of al Wansharisi (d.914/1508) and the Kitab al-Bunyan of Ibn al-Rami (d 734/1334). This paper has taken them from two sources, they are: (1) Damages in Islamic Law: Maghribi Muftis and the Built Environment (9th-15th Centuries CE) by Akel I. Kahera and Omar Benmira; (2) Arabic Islamic Cities: Building and Planning Principles by Besim Selim Hakim. The second important factor of the traditional cities is the ‘theme’. A ‘theme’ of a city is the basis of its existence. Theme ensures the growth and self-identity of the city. A city may have more than one theme. But it need at-least one to survive. For example, Fez, Morocco had not established itself as a city in absence of a theme or a driving force. The geographical location of Fez made it certain that a settlement would have evolved naturally in that place. It was located at the intersection of two great trade routes. However, it did not flourished until at the end of the eighth century, when a descendent of the Prophet Muhammad call Idris ibn Abduallah founded the city. Idris was considered as a man of knowledge by the local people as he was a direct descendent of the Prophet Muhammad. So a “city of knowledge” was established and hence ‘knowledge’ was the theme of Fez.The paper proposes that we need to create a model through which Islamic laws(traditional laws for other culture) can be applied to the contemporary cities. The ‘theme’ of the city is also needed to be identified.