This paper studies the effects of learning-by-doing on a firm's export behavior in an imperfectly competitive market. What role export subsidies can play to help home firm behave in a social-welfare-maximizing manner will be studied, too. This paper shows that the effects of exportsubsidies on firms' production depend crucially on the magnitude of learning effect. When learning effect is suffciently large, increasing export subsidy tends to reduce exports. It is therefore optimal for the government to tax exports rather than subsidize exports.