NEW YORK (CNNMoney) -- Gibson Guitar Corp. has agreed to pay a fine for illegally importing exotic wood from Madagascar and India, the U.S. government said Monday.

Gibson will pay a $300,000 penalty to avoid criminal charges for importing ebony and rosewood in violation of the Lacey Act, which prohibits the acquisition of plant products that are protected in other countries, the Department of Justice said in a statement.