We quantify the importance of collateral versus taxes for firms' capital structures. We estimate a dynamic contracting model in which a firm seeks financing and is subject to taxation. In the model, collateral constraints arise endogenously. Optimal leverage stays a safe distance from the...