A new neuromorphic device controls hydrogen ions to mimic synaptic learning and memory, achieved for the first time in a vertical two-terminal architecture.