This thesis focuses on how the frictions at the firm-level production decisionsimpact aggregate productivity. The first chapter quantifies the impact of trade secret protection on labor outsourcing, and consequently, on aggregate productivity. First, using event studies and differences-in-differences around the staggered adoption of the Uniform Trade Secrets Act, I show that better trade secret protection leads to increased outsourcing. Second, to quantify the resulting gains in productivity, I build a structural model of outsourcing and multi-industry dynamics and estimate it with data from the U.S. manufacturing sector. I decompose the cross-state differences in labor outsourcing into differences in firing cost, industry composition, dema...