Coupling high ionic and low electronic conductivity in the electrolyte of low-temperature solid-oxide fuel cells remains a challenge. Now, the electronic conductivity of a perovskite electrolyte, which has high proton conductivity, is shown to be heavily suppressed when exposed to hydrogen, leading to high fuel cell performance.