We extend the canonical model of skill-biased technical change by modeling the allocation of tasks to factors and allowing for automation and the creation of new tasks. In our model, factor prices depend on the set of tasks they perform. Automation can reduce real wages and generate sizable changes in inequality associated with small productivity gains. New tasks can increase or reduce inequality depending on whether they are performed by skilled or unskilled workers. Industry-level data suggest that automation significantly contributed to the rising skill premium, while new tasks reduced inequality in the past but have contributed to inequality recently.