The Constitution of Medina was drafted after a migration.
== Principles of constitutional design ==After tribal people first began to live in cities and establish nations, many of these functioned according to unwritten customs, while some developed autocratic, even tyrannical monarchs, who ruled by decree, or mere personal whim
 The process by which a country adopts a constitution is closely tied to the historical and political context driving this fundamental change

