We analyze optimal fiscal and monetary policy in an economy with distortionary labor income taxes, nominal rigidities, nominal debt of various maturities and short-selling constraints. Optimal policy prescribes the almost exclusive use of long term debt. Such debt mitigates the distortions associated with hedging fiscal shocks by allowing the government to allocate them efficiently across states and periods.