Tropical deforestation accounts for almost one-fifth of greenhouse gas emissions and threatens the world’s most diverse ecosystems. Much of this deforestation is driven by illegal logging. We use novel satellite data that tracks annual deforestation across eight years of Indonesian institutional change to examine how local officials’ incentives affect deforestation. Increases in the number of political jurisdictions lead to increased deforestation and lower timber prices, consistent with Cournot competition between jurisdictions. Illegal logging and local oil and gas rents are short-run substitutes, but this effect disappears over time with political turnover. The results illustrate how local officials’ incentives affect deforestation and show how standard economic theories can explain illegal behavior.