The companies will jointly spend at least $1 billion to build a North American network in an effort to persuade more people to buy battery-powered cars and trucks.
More technology and creature comforts, as well as a parade of new electric vehicles, have complicated the job after accidents.
The European Union is trying to assemble the building blocks to produce electric cars, but subsidies are luring companies to the United States.
As luxury cars become rolling supercomputers, designers are wondering how big is too big.
The network could help increase the low number of charging stations, encouraging more people to buy electric vehicles.
No Republican in Congress voted for the Inflation Reduction Act. But their districts and states will greatly benefit from the investments spurred by the law.
The agreement is a rare example of cooperation between a traditional carmaker and an upstart.
Fully electric vehicles have fewer fires than gasoline-powered and hybrid cars, and their crash protection is at least equivalent.
The German automaker, which has made cars in the state for decades, has invested $1 billion in a factory to supply the power for electric vehicles.
The prize: batteries that would be cheaper, faster to charge and less vulnerable to raw material shortages. Whoever gets there first will have a major advantage.