The legal tradition is a key cause of economic development. To clarify its determinants, we study the first legal orders recorded in Bronze Age Mesopotamia. We build on the idea that, for non-negligible legal decentralization costs, the mix of uncertain case law and discretionary inquisitorial adjudication can prevail over the bundle of certain statute law and bright-line adversarial adjudication only when special interests are favored. This occurs when the political process is sufficiently autocratic and/or legal preferences are sufficiently diverse. Consistent with this intuition, the rising ethnolinguistic diversity of the Akkadian empire pushed the dominated polities to prefer discretionary inquisitorial adjudication by a local court that made the law treating its own and the imperial rulings as binding, to lawmaking by an imperial envoy. The latter would have cared only about transfers. Similarly, the more politically inclusive and culturally homogeneous pre-Akkadian polities and the politically weak and commercially interconnected post-Akkadian kingdoms adopted statute law along with bright-line adversarial adjudication. Our estimates remain stable across identification strategies and notably, when we control for trade-related legal decentralization costs and when we rely on instrumental variables. Specifically, we instrument the division of the decision-making power with the political instability driven by the presence of young kings in neighboring polities and the ethnolinguistic heterogeneity with the climatedriven migration of out-of-sample peoples.