I study the firm-level dynamic response of a commodity-exporting economy to global cycles in commodity prices. To do so, I develop a heterogeneous-firms model that endogenizes declines in aggregate productivity through reallocation towards less productive firms. Within a given sector, commodity...