How do income shocks affect armed conflict? Theory suggests two opposite effects. If labour is used to appropriate resources violently, higher wages may lower conflict by reducing labour supplied to appropriation. This is the opportuniTY cost effect. Alternatively, a rise in contestable income may increase violence by raising gains from appropriation. This is the rapaciTY effect. Our article exploits exogenous price shocks in international commodiTY markets and a rich dataset on civil war in Colombia to assess how different income shocks affect conflict. We examine changes in the price of agricultural goods (which are labour intensive) as well as natural resources (which are not). We focus on Colombia's two largest exports, coffee and oil. We find that a sharp fall in coffee prices during the 1990s lowered wages and increased violence differentially in municipalities cultivating more coffee. This is consistent with the coffee shock inducing an opportuniTY cost effect. In contrast, a rise in oil prices increased both municipal revenue and violence differentially in the oil region. This is consistent with the oil shock inducing a rapaciTY effect. We also show that this pattern holds in six other agricultural and natural resource sectors, providing evidence that price shocks affect conflict in different directions depending on the type of the commodity.