A biomimetic synapse built from water droplets and biological ion channels achieves synaptic plasticity and performs machine learning tasks.