A fuel cell converts hydrogen into water with the help of oxygen from the air. During this chemical reaction, electrical energy is released. This energy is harnessed to drive the electric motors.