This paper provides a competitive equilibrium model of capital structure and industry dynamics. In the model, firms make financing, investment, entry, and exit decisions subject to idiosyncratic technology shocks. The capital structure choice reflects the tradeoff between the tax benefits of debt and the associated bankruptcy and agency costs. The interaction between financing and production decisions influences the stationary distribution of firms and their survival probabilities. The analysis demonstrates that the equilibrium output price has an important feedback effect. This effect has a number of testable implications. For example, high growth industries have relatively lower leverage and turnover rates.