The nice thing about trains is that they can run on electricity.
It does require investing in overhead wires.