The companies said in a joint statement that tests of a train equipped with a new hydrogen drive will commence in 2024 and run for one year. The two-car train will have a top speed of 160 kilometers per hour (99.4 miles per hour) and it can be recharged in just 15 minutes.

The train, which is called the Mireo Plus H, will run between three cities in the German state of Baden-Württemberg, replacing a conventional diesel-powered unit running on the route. The new hydrogen drive will save around 330 tons of CO2 a year, the companies said.

The Mireo Plus H will be powered by a battery and fuel cells that convert hydrogen and oxygen into electricity. The two-car train will have a range of 600 kilometers (373 miles), and Siemens said it would also develop a three-car version with a range of 1,000 kilometers (621 miles).

“The decisive factor is that the energy comes from renewable sources,” Baden-Württemberg transport minister Winfried Hermann said in a statement. This country wants to be a pioneer in modern, sustainable rail transport.”