Proton-conducting solids are crucial components in a variety of electrochemical and energy-conversion devices. A porous metal–organic framework loaded with guest molecules displays both proton-conducting and gas-tight properties, affirming its potential as a fuel cell membrane.