Exporting not only provides firms with profit opportunities, but can also provide for risk diversification if demand is imperfectly correlated across countries. This paper shows that the correlation pattern of demand shocks across countries constitutes a hitherto unexplored source of comparative advantage that shapes trade flows and persists even if financial markets are complete. With exporters making market- specific choices under uncertainty, countries whose shocks are riskier, in the sense that they contribute more to aggregate volatility, are less attractive destinations for both investment and exports. A gravity-type regression lends support to the hypothesis that, conditional on trade costs and market size, exporters sell smaller quantities in riskier destinations>>ClickHere>>>