A new and extensive panel of outward nonresource and resource FDI is used to investigate the effect of natural resources on the different components of FDI. Our main findings are as follows. First, for countries which were not a resource producer before, a resource discovery causes nonresource FDI to fall 16% in the short run and by 68% in the long run. Second, for countries that were already a resource producer, a doubling of resource rents induces a 12.4% fall in nonresource FDI. Third, on average, the contraction in nonresource FDI outweighs the boom in resource FDI. Aggregate FDI falls by 4% if the resource bonanza is doubled. Finally, these negative effects on nonresource FDI are amplified through the positive spatial lags in nonresource FDI. We also find that resource FDI is vertical, whereas nonresource FDI is of the export-fragmentation variety. Our main findings are robust to different measures of resource reserves and the oil price and to allowing sample selection bias.