We develop an optimal contracting model in which limited enforcement of financial contracts generates dispersion in marginal products of capital across firms. We show that the optimal contract can be implemented using state-contingent transfers and a simple collateral constraint that limits the...