We analyze the evolution of economic institution during the process of industrialization. In particular, we focus on the institution of contract enforcement. Empirically, we show that, during the process of industrialization, countries tend to shift their manufacturing production towards industries that require more relationship-specific investment. Theoretically, we build a dynamic model with incomplete contracts and evolving institutions to account for this pattern. In our model, the incompleteness of contract leads to two types of misallocations that leads to production inefficiency: unbalanced use of inputs and unbalanced production of different goods. In addition to this production inefficiency, the imperfect contract enforcement leads to distortions in factor supply. The government invests in enforcement institutions in order to improve the contractual environment, and the evolution of industry composition crucially depends on how contractual environment changes over time.