This paper addresses the issue of the relationship between productivity and market competition. In comparison to the economies of other European countries, the Spanish economy has been growing, while productivity growth has stagnated. Here we provide empirical evidence about the relationship between productivity and market competition from Spanish manufacturing firms at firm level between 1994 and 2004. Correcting for selection bias, our study pays special attention to the patterns of productivity growth between openness and non-openness firms. When market competition increases the effect on firms operating in domestic markets is positive but when the level of competition is high incentives to invest in innovation and productivity gains disappear. The empirical relationship between competition and productivity is an inverted U-shape, where productivity growth is highest at intermediate levels of competition. The productivity growth of firms operating in international markets is higher than that of non-openness firms, but when market competition rises they moderate their productivity growth. Our empirical results suggest that the correct competition policy in the Spanish economy should remove the barriers to competition in internal markets in order to increase the incentives for manufacturing firms to invest in innovation and productivity growth