Should governments direct research and development (R&D) away from “dirty” technologies towards “clean” ones? How important is this compared to carbon pricing? We address these questions with the introduction of two model features to the literature on directed technological change and the environment. We introduce decreasing returns to R&D, and allow future carbon taxes to influence current R&D decisions. Our results suggest that governments should prioritize clean R&D. Dealing with major environmental problems requires an R&D shift towards clean technology. However, in the case where most researchers are working with clean technology, both productivity spillovers and the risks of future replacement increase. Consequently, the gap between the private and social values of an innovation is greatest for clean technologies.