BERLIN (AP) — A German court has rejected a lawsuit from an environmental group which sought to have automaker Mercedes-Benz barred from selling cars with combustion engines that emit greenhouse gases after 2030.

The state court in Stuttgart, where Mercedes-Benz Group is based, said Tuesday that it is up to lawmakers to decide what measures should be taken against climate change, German news agency dpa reported. It said that such decisions can’t be preempted by an individual suit in a civil court.

The Deutsche Umwelthilfe group had sought to have Mercedes-Benz ordered not to sell cars with emissions-causing combustion engines after the end of October 2030. It also wanted the automaker to refrain from selling new cars with combustion engines before that date that would emit a combined total of more than 516 million tons of carbon dioxide.

Deutsche Umwelthilfe said it plans to appeal to a higher regional court, arguing that politicians’ inaction forced it to take legal action.

Mercedes-Benz welcomed the ruling. It said there is no question over the protection of the climate being one of the greatest challenges in human history, and that the company is standing by its responsibility and has long since set course toward climate neutrality.

___

Follow AP’s climate coverage at https://apnews.com/hub/climate-and-environment