Audi today announced it is ending its wildly successful endurance racing program in the World Endurance Championship (WEC) and American Le Mans Series (ALMS) to instead focus on the new all-electric Formula E racing series.

“We’re going to contest the race for the future on electric power,” said Rupert Stadler, Audi’s chairman of the board of management, in a statement. “As our production cars are becoming increasingly electric, our motorsport cars, as Audi’s technological spearheads, have to even more so.”

In its 18-year involvement with prototype endurance racing, Audi has won the 24 Hours of Le Mans 13 times, two WEC championships, nine ALMS championships and 106 races overall, and has been using diesel-powered racers since 2006; it finished third at this year’s Le Mans with a diesel-hybrid LMP1 prototype. But the Volkswagen Group’s recent Dieselgate emissions scandal has shifted the company’s focus from diesel engines to electric vehicles, so Audi’s switch was inevitable.

For the current 2016/17 season, the German carmaker is teamed with Team ABT Schaeffler Audi Sport as a technical partner, but has plans for a full factory team in the near future. The brand will continue to field a German DTM touring car team.