This paper establishes a duopoly model, which considers consumers’ preference exhibits the horizontal differentiation and vertical differentiation simultaneously, to investigate how counterfeiting affects firms’ market power and consumer's purchasing behavior. The effects of government enforcement on counterfeiting are also concerned. The findings tell that (1) the market power of the firms is higher than the one when consumers with only the characteristic of horizontal differentiation or vertical differentiation; (2) when the production cost of a genuine product increases, the consumers who originally purchased this genuine product may continue to purchase the genuine one, purchase the genuine of the other brand, or, quite interestingly, purchase the counterfeiting product of the other brand; (3) If government imposes a (stricter) enforcement on counterfeiting, the consumers who do not have a strong preference on a particular brand of product but originally purchased the counterfeit of this brand of product may instead purchase the genuine one or purchase nothing; the consumers who originally purchased its genuine may instead purchase the genuine of the other brand or purchase nothing.