We analyze optimal fi nancial contracts when the specifi city of investments is endogenous. Specialization decreases the liquidation value of assets, but it also improves the project's long term productivity. While the first eff ect is known to make financing more diffi cult, we show that the...