Volkswagen, the world’s biggest carmaker, has become the latest to move away from petrol and diesel, saying it will offer an electric version of all its 300 models by 2030.
VW will double investment in zero-emission vehicles to 20bn euros (£18bn) as it seeks to put the emissions scandal behind it.
The German firm plans to offer 80 new electric cars across the group by 2025.
It comes as Mercedes-Benz also promised electric versions of all its cars.
Dieter Zetsche, the boss of Mercedes-Benz owner Daimler, said the entire range would have electric or hybrid versions by 2022.
‘Got the message’
But VW is the first major carmaker to announce a big push into the mass-market with electric vehicles.
Speaking at the Frankfurt motor show, Volkswagen chief Matthias Mueller told the BBC the firm had “got the message”.
“Customers want clean vehicles. People want to have clean air, and we want to make our contribution here,” he said.
The German firm, whose brands include Seat and Skoda, also said it would place orders worth more than 50bn euros for batteries to power the cars.
VW and other German carmakers have faced heavy criticism from the country’s chancellor, Angela Merkel, over the diesel emissions scandal.
In the run-up to this month’s election, Mrs Merkel said the car industry needed to regain the public’s trust.
VW’s move comes as a growing number of countries are announcing plans to ban new diesel and petrol cars.
China, the world’s biggest car market, became the latest to signal such a move over the weekend, although it did not set a date.
Both the UK and France have already announced plans to ban new diesel and petrol vehicles by 2040, as part of efforts to reduce pollution and carbon emissions.