What should a country do to diversify its exports? Our analysis points to (in order of importance) accumulating human capital, lowering trade barriers, improving institutions and infrastructures. For commodity exporters, reducing trade barriers is key, followed by improving secondary education and financial sector development.