According to www.eia.gov, Hydrogen fuel cells produce electricity by combining hydrogen and oxygen atoms. The hydrogen reacts with oxygen across an electrochemical cell similar to that of a battery to produce electricity, water, and small amounts of heat.