Using an agency theoretical framework, this paper extends the optimal capital structure literature by modeling the rivalry between equity and debt to arrive at some very fundamental results involving endogeneity of bankruptcy, equilibrium interest rates, pricing of risk-free/risky debt and pareto-optimal financing techniques.