We study Ramsey-optimal fiscal policy in an economy in which product varieties are the result of forward-looking investment decisions by firms. There are two main results. First, depending on the particular form of variety aggregation in preferences, firms' dividend payments may be either subsidized or taxed in the long run. This policy balances monopoly incentives for product creation with consumers' welfare benefit of product variety. In the most empirically relevant form of variety aggregation, socially efficient outcomes entail a substantial tax on dividend income, removing the incentive for over-accumulation of capital, which takes the form of variety. Second, optimal policy induces dramatically smaller, but efficient, fluctuations of both capital and labor markets than in a calibrated exogenous policy. Decentralization requires zero intertemporal distortions and constant static distortions over the cycle. The results relate to Ramsey theory, which we show by developing welfare-relevant concepts of efficiency that take into account product creation.