This paper investigates several channels through which automation affects an emerging economy. Building on a Ricardian …, it is shown that domestic and foreign automation have differential effects on labor markets. Based on this model, the … impact of automation on local labor markets in Brazil are estimated using a shift-share approach. Local labor market …