Fuel cells use a chemical reaction between hydrogen and oxygen to generate electricity, which powers the propulsion system.