We study the interaction between financing and investment decisions in a dynamic model where the firm has multiple debt issues and equityholders choose the timing of investment. Jointly optimal capital and priority structures can virtually eliminate investment distortions, because debt priority...