“Defendants failed to satisfy their burden of proving by a preponderance of evidence that consumption of coffee confers a benefit to human health,” Berle wrote.

The Council for Education and Research on Toxics—the group behind the lawsuit—wanted to penalize businesses for not warning their customers that coffee contains a carcinogenic substance.

Companies may even have to pay fines if they don’t warn customers about the cancer risk posed by acrylamide.

But the coffee industry has claimed the chemical, which is produced in the roasting process, is present at harmless levels and should be exempt from the law because it occurs naturally in the process required to make the beans flavorful.

In a new filing, the coffee companies wrote: “Coffee consumption does not increase the risk of any chronic disease and is independently associated with a decreased risk of several major chronic diseases,” according to the Wall Street Journal.

In a statement, the National Coffee Association said: “Coffee has been shown, over and over again, to be a healthy beverage. This lawsuit has confused customers, and does nothing to improve public health.”

What is Acrylamide?

Acrylamide in large quantities could be dangerous, but it’s in many foods we consume and cannot be removed from coffee.

It naturally forms when plants and grains are cooked at high temperatures.

It’s created in the process where heat transforms sugars and amino acids in ways that change flavor and tend to brown food.

Officials at the European Food Safety Authority told Business Insider: “It is likely [acrylamide] has been present in food since cooking began.”

All baking, frying and roasting produces the chemical, but only in foods derived from plants, including grains, not necessarily in meat or fish.

There is evidence to suggest it poses a risk to humans, as industrial accidents when people have inhaled large quantities of it have shown.

But the quantity found in a cup of coffee is almost negligible in comparison.

Health Benefits of Coffee

Existing research shows regular coffee drinkers have a lower risk of cancer.