We integrate an agency problem into search theory to study executive compensation in a market equilibrium. A CEO can choose to stay or quit and search after privately observing an idiosyncratic shock to the firm. The market equilibrium endogenizes CEOs' and firms' outside options and captures...