Abstract: This paper presents a tractable structural model whereby controlling equity holders are also among the creditors of the firm. As the firm approaches distress, equity holders can drain the assets of the firm and expropriate other creditors by repaying their credit before bankruptcy. The right of the bankruptcy court to revoke such repayment protects arm's length creditors, reduces the cost of borrowing and induces equity holders to anticipate repayment of their credit. Equity holders decide repayment neither too early nor too late, so as to reduce the risk of repayment revocation by the bankruptcy court. Similar conclusions apply to the preferential repayment of bank loans personally guaranteed by equity holders. The analysis also suggests that callable bearer bonds may be more valuable to equity holders than to other creditors.