Germany’s top appeals court has struck down a bid by an activist group to stop BMW and Mercedes-Benz from selling petrol and diesel vehicles.

Environmental Action Germany (known locally as Deutsche Umwelthilfe, or DUH) sought to ban the car giants from selling combustion-powered cars by 2030, however previous rulings against the case were upheld.

According to news outlet Reuters, DUH claimed BMW and Mercedes-Benz had exceeded their ‘carbon budget’ – with the group itself calculating the carbon budget for each company based on Germany’s Climate Action Law, which aims to reduce greenhouse gas emissions by 65 per cent by 2030.

CarExpert can save you thousands on a new car. Click here to get a great deal.

The non-profit alleged the two automakers held a disproportionate share of the nation’s “remaining carbon budget”.

Despite losing two previous legal attempts, representatives for the organisation persisted, taking the appeal to the Federal Court of Justice.

“An emissions budget can be derived from the Paris Agreement and the Federal Climate Action Law only in global terms and for the Federal Republic of Germany as a whole, but not for individual actors or even just the transport sector,” the court ruled, according to Clean Energy Wire.