We study a model in which leverage and compensation are both choice variables for the firm and borrowing spreads are endogenous. First, we analyze the correlation between leverage and variable compensation. We show that allowing for endogenous compensation and leverage can explain the conflicting findings of the empirical literature. We uncover a new channel of complementarity between effort and leverage that induces a correlation sign opposite to what current theoretical models predict. Second, we study the dynamics of leverage and compensation design after a credit stimulus. We derive a set of new empirical predictions. For outward-shifts in credit supply, variable compensation is increasing in leverage growth. Moreover, variable compensation increases after the credit stimulus, especially for firms with low idiosyncratic risk.